add haxe3 support