fix some bug in makefile