include --thread in Makefile