UE4 compile error MSB3075

Howdy!
I have been successfully compiling the Engine on Linux without any issues. However on Windows 10 I get the following error



1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Creating makefile for ShaderCompileWorker (UnrealBuildTool.exe is newer)
1>Performing 26 actions (4 in parallel)
1>Module.DesktopPlatform.cpp
1>Module.Core.8_of_9.cpp
1>Module.Core.9_of_9.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>ERROR : UBT error : Failed to produce item: E:\UnrealTournament-clean-master\Engine\Intermediate\Build\Win64\ShaderCompileWorker\Development\ShaderCompileWorker-Core.lib
1>Total build time: 4.59 seconds (Local executor: 0.00 seconds)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project "ShaderCompileWorker.vcxproj" -- FAILED.
2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
2>Creating makefile for UE4Editor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Building UnrealHeaderTool...
2>Creating makefile for UnrealHeaderTool (BuildConfiguration.xml is newer)
2>Performing 8 actions (4 in parallel)
2>Module.Core.8_of_9.cpp
2>Module.Core.9_of_9.cpp
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
2>ERROR : UBT error : Failed to produce item: E:\UnrealTournament-clean-master\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib
2>Total build time: 4.42 seconds (Local executor: 0.00 seconds)
2>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: E:\UnrealTournament-clean-master\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)).
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "UE4.vcxproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========


I am using Micorsoft Visual Studio Community 2017 version 15.9.16 to load the UE4.sln and compile the Engine (version is 4.12. I have to use it for experimental purpose). How can I rectify this? Thanks!

UT4 only works with VS 2015. I got it compiled with VS2017 but was a lot of hassle.

That was it, thanks!