Migration for Haxe 3.1. WIP
Merge pull request #15 from proletariatgames/haxe_3.1_migration

Migration for Haxe 3.1.