Add constraints on dependencies.