Compile errors in IWYU mode

My plugin uses IMYU mode and has windows.h include in cpp. Everything works fine when I play in UE Editor. However when packaging in DebugGame mode, I get following compile errors in engine’s internal files. Any idea what may be causing it?

UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: UELinkerFixups.cpp
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\HAL/Platform.h(822): note: see previous definition of 'TEXT'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files\Epic Games\UE_4.16\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(101): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\Windows/WindowsPlatformMisc.h(35): note: see declaration of 'FWindowsPlatformMisc'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files\Epic Games\UE_4.16\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(151): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\Windows/WindowsPlatformMisc.h(35): note: see declaration of 'FWindowsPlatformMisc'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files\Epic Games\UE_4.16\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(156): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\Windows/WindowsPlatformMisc.h(35): note: see declaration of 'FWindowsPlatformMisc'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Program Files\Epic Games\UE_4.16\Engine\Source\Runtime\Core\Public\Async/AsyncFileHandle.h(158): error C2039: '__faststorefence': is not a member of 'FWindowsPlatformMisc'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: c:\program files\epic games\ue_4.16\engine\source\runtime\core\public\Windows/WindowsPlatformMisc.h(35): note: see declaration of 'FWindowsPlatformMisc'