Fork: for haxe 3 support