Haxe3 compatibility changes