Fix building with submodules.