Fix Haxe3 compatibility