Chaged Makefile flag for linking to pthreads from '-lpthread' to '-pthread'. Hopefully this will make it link on linux.