updated Makefile to include pthread library