made libpthread link statically in makefile