#define _WIN32_WINNT 0x0501
Use /MT and v120_xp toolset