Made compatible with Haxe 3.0