Adding the pthread flag to the makefile