Error when compiling from source

I recently forked and then cloned the release branch of Unreal Engine from github, but when I try to compile it in VS2017, I get this error:

4>c:\users\mike\documents\git\unrealengine\engine\source\runtime\d3d12rhi\private\D3D12StateCachePrivate.h(716): error C4596: 'SetPipelineState': illegal qualified name in member declaration

and the compile fails.

I’ve tried Googling this, but I can’t find anything to help. Any ideas?

and one google later I found the answer here