update: change -lpthread in Makefile.examples.in to -pthread