fix include order

define the _WIN32_WINNT constant before including windows.h
to avoid redefinition.