Makefile changes for pthread