Fix compilation with BOOST_USE_WINDOWS_H defined

Don't use macros defined only in Windows SDK 6.0 and later as this breaks compilation with MinGW and older MSVC.