Update Makefile

Add libpthread to depends