fixed Makefile minor bugs