Ensure backwards compatibility with old versions of haxe.