makefile changes to build test executables with -lpthread