Keep compatibility with haxe 3.0