Updated to define _WIN32_WINNT before including windows.h anywhere