Add -D_WIN32_WINNT=0x0501 to Windows build so that we support WinXP still.