Resolve module dependencies.