Fix dependencies in root modules