fix Makefiles' dependencies