Added -lpthread to Makefile -- needed on some systems