Added pthread to makefile