updated makefile to link pthreads, changed hardcoded directories