Fixed dependency errors with Makefile.