need to link to pthreads

Fix Makefile so builds