improve the makefile to build. need to fix build problem.