added linkflag
added initial makefile chenge to compile std::threads directly