update to Haxe 3