Added support for MacOS X. [WIP]
Updated kotlinc.