use auto-detection for building with Windows SDK 7.1

This is similar to what is done for building with MSVC 2008-2013