Fixed haxe 3.0 compat. issues