Port to Haxe 3.0