Added support for GLFW.
Updated kotlinc and fixed Kotlin issues.
Misc fixes and improvements.