Problems linking sphelper.h - ATL::CAtlBaseModule

I can’t seem to get this to link when I try to package, yet it compiles and runs fine in the editor.

#include "AllowWindowsPlatformTypes.h"
#pragma warning(push)
#pragma warning(disable: 4191)
#pragma warning(disable: 4996)
#ifndef DeleteFile
#define DeleteFile DeleteFileW
#endif
#ifndef MoveFile
#define MoveFile MoveFileW
#endif
#include "sapi.h"
#include "sphelper.h"
#undef DeleteFile
#undef MoveFile
#pragma warning(pop)
#include "HideWindowsPlatformTypes.h"

And this is the error I’m getting

MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: [4/4] Link OdysseyVirtual.exe
MainFrameActions:Packaging (Windows (32-bit)):UnrealBuildTool: Creating library C:\Users\Alex\Document\Unreal Projects\OdysseyVirtual\Binaries\Win3\OdysseyVirtual.lib and objectC:\Users\Alex\Documents\Unreal Projects\OdysseyVirtual\Binaries\Win32\OdysseyVirtual.exp
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: SpeakerComponent.cpp.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: SpeechSystem.cpp.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: OdysseyVirtual.generated.cpp.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: C:\Users\Alex\Documents\Unreal Projects\OdysseyVirtual\Binaries\Win32\OdysseyVirtual.exe: fatal error LNK1120: 1 unresolved externals

Is there anything I can do?

Solved it with

PublicAdditionalLibraries.Add("atls.lib");