Adapt to updates in Kotlin compiler API

Fix errors/warnings