Using UActorCompent with a Module

I’m trying to use a UActorCompent in module, and keep getting compiler errors.

Error:
Runtime/Engine/Classes/Engine/EngineBaseTypes.h:387:8: error: explicit specialization of non-template struct ‘TStructOpsTypeTraits’

Messenger.Build.cs:
using UnrealBuildTool;

public class Messenger : ModuleRules
{
	public Messenger(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore"});
        PrivateDependencyModuleNames.AddRange(new string[] {"Core"});
		PrivateIncludePaths.Add("Messenger/Private");
	}
}

I can use UActorComponent in my main project without issues, and there aren’t any other Dependencies that should require it. What do I have to add to the build to support a UActorComponent in a module?