Patch for older versions of Haxe