Workaround for https://github.com/HaxeFoundation/haxe/issues/3377