Well, looks like it was not compiled completely for that first time :)
With GNU make the build fails with the error
/bin/ksh ./libtool --tag=CC --mode=link gcc -g -O2 -Wall
-Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing
-Wdeclaration-after-statement -Wno-format -Wpointer-arith
-Wno-pointer-sign -Wwrite-strings -export-dynamic -o gst main.o
libgst/libgst.la lib-src/library.la -lm
libtool: link: gcc -g -O2 -Wall -Wno-strict-aliasing -Wno-switch
-fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format
-Wpointer-arith -Wno-pointer-sign -Wwrite-strings -o gst main.o
-Wl,--export-dynamic libgst/.libs/libgst.a -lc /lib/libc.so
lib-src/.libs/library.a -lm -Wl,-rpath -Wl,/lib -Wl,-rpath -Wl,/lib
libgst/.libs/libgst.a(sysdep.o): In function `_gst_wakeup':
sysdep/posix/events.c:387: undefined reference to `pthread_kill'
I've tried to play with LDFLAGS in the enviromnent and in the
Makefile, but there were no any positive result...