Migrate to the new API in kotlin-reflect build script, remove obsolete workarounds.
resolveDependencies