update Makefile
bug fix threadid