Fix unnecessary dependencies on submodules for root compiler