fix makefiles so the submodules don't get recompiled so often