Fixed bugs in Makefile.