fix KT-4612

Properly implement KDoc compiler support, added basic integration test.