added linking to pthread in makefile