add pthread flags to makefile
Merge remote-tracking branch 'origin/master'