Define _WIN32_WINNT to 0x0500 when including windows.h