See what you mean, using #include <windows.h> automatically includes winsock.h so our marvellous AI suggests:
#include <winsock2.h>
#include <windows.h>
AFAIKS there are six instances where this wants to be changed.
Put it where, for example, a file is to be opened so you get the file name – here’s the function. 🙂
Edit: No _WIN32 directive for xml_file.cc. Apparently MWEdit and native Morrowind don’t use xml, OpenMW does … interesting.
WindowsHModular is an experimental alternative to windows.h – might be best to use that for project creation rather than restoration. 😛