Some fixes for the AS3 / Haxe comparison