Normally UnrealBuildTool should add the preprocessor definition UE_SERVER=1. It does this in UEBuildServer.SetupDefaultGlobalEnvironment. However there...