changed makefile to work with pthreads on linux