Adding -lpthread to Makefile