I was getting this exact same issue, however those includes did not do anything for me.
I found this link below and it did solve issue I was having. The problem was my 3rd party plugin was referencing some misc windows specific headers when I included them in my plugin.
#include "AllowWindowsPlatformTypes.h"
//The external headers and defines goes here
#include "HideWindowsPlatformTypes.h"
Lots more info in this post:
https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1361551-editor-won-t-build-if-a-source-file-is-modified-and-the-unmodified