fixed dependencies in Makefiles