[c] fix LDFLAGS with -lpthread
[c] fix miss checkin code of num sample