fix dependencies in Makefiles