Errors while compiling Engine Master Branch

I have been trying to compile the master engine branch on 4.7 and am receiving the following errors:

Error 1 error C2039: ‘ClusterIndex’ : is not a member of ‘FFoliageInstance’ E:\UnrealEngineSource\4.7\master\Engine\Source\Runtime\Foliage\Private\InstancedFoliage.cpp 1787 1 UE4

Error 2 error C2084: function ‘void SAnimMontagePanel::OnAnimSegmentRemoved(int32,int32)’ already has a body E:\UnrealEngineSource\4.7\master\Engine\Source\Editor\Persona\Private\SAnimMontagePanel.cpp 672 1 UE4

Error 3 error C3861: ‘ShouldUseGetDynamicMeshElements’: identifier not found E:\UnrealEngineSource\4.7\master\Engine\Source\Runtime\Renderer\Private\ShadowSetup.cpp 1815 1 UE4

Error 4 error C2039: ‘InitializeAutoStartupModules’ : is not a member of ‘FModuleManager’ E:\UnrealEngineSource\4.7\master\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp 1881 1 UE4

Error 5 error : Failed to produce item: E:\UnrealEngineSource\4.7\master\Engine\Binaries\Win64\UE4Editor-Foliage.dll E:\UnrealEngineSource\4.7\master\Engine\Intermediate\ProjectFiles\ERROR UE4

Error 6 error MSB3073: The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38 5 UE4

Any ideas why this is happening and how I can fix this? I need to do this urgently…