Fixing makefile dependencies