thread crash solved
modify Makefile and some define macro