Unable To Compile UEBuildConfiguration does not exist

Hello! I am compiling UE4 from source and I am struggling to integrate the Steamworks SDK. I have followed the guide on their site, I have watched videos, and I am now following another guide in which it is saying to dynamically add the OnlineSubsystemSteam to the compilation depending on the build platform. To do this, they use the following code in their Project.Build.cs file:

if ((Target.Platform == UnrealTargetPlatform.Win32) || (Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Linux))
		{
			if (UEBuildConfiguration.bCompileSteamOSS == true)
			{
				DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
			}
		}

However, when I try and compile this, the engine gives me an error saying that UE4BuildConfiguration does not exist! When looking online I can’t seem to find anything about this being deprecated and I am finding examples of people using it with no issue. Is this deprecated? Is there something I need to include? Is this something I have to do to compile with Steam if I also want to ship on other platforms?

Thank you very much!