Fix unresolvable transitive dependencies on phantom library versions.