Corrected some bugs in makefile.