Replace removed dependencies by the package itself.

This solve unexpected dependency resolving issues with complex
dependency graphs.