Can't build UE editor in VS: Error 93 error RC1015: cannot open include file 'windows.h'

With this ‘workaround’ I can compile my project from Visual Studio. However I can’t compile in the editor, I can’t package my games for android. UE can’t find window.h and new. I couldn’t find any proper solution on the internet. How can I fix this?