Makefile with pthreads