fixed buf in threadpool; added makefile