Haxe 3 support

Some Haxe 3 support