Change external packages to submodules.