Fixed compatibility for Haxe 2.10