Change -lpthread to -pthread in Makefile