upgrade to the latest kotlin and fixed up some compile issues