Fixed Makefile bugs.