diff --git a/autobuild.xml b/autobuild.xml
index 8afc8db46bf83303044519c07417e7dffff615e8..a9525e6bbc5bdbf488f4895ba54c311c7ca0be42 100644
--- a/autobuild.xml
+++ b/autobuild.xml
@@ -3755,7 +3755,7 @@ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors</string>
         <key>windows</key>
         <map>
           <key>build_directory</key>
-          <string>build-vc${AUTOBUILD_VSVER|120}-$AUTOBUILD_ADDRSIZE</string>
+          <string>build-vc${AUTOBUILD_VSVER|150}-$AUTOBUILD_ADDRSIZE</string>
           <key>configurations</key>
           <map>
             <key>RelWithDebInfo</key>
diff --git a/build.sh b/build.sh
index bafee86206d8f1960bca6672d6480d961ee6b836..545c913f92c90694b38fb0b1d38f0371badfaa0a 100755
--- a/build.sh
+++ b/build.sh
@@ -140,7 +140,6 @@ pre_build()
     "$autobuild" configure --quiet -c $variant -- \
      -DPACKAGE:BOOL=ON \
      -DHAVOK:BOOL="$HAVOK" \
-     -DCMAKE_SYSTEM_VERSION:STRING="10.0" \
      -DRELEASE_CRASH_REPORTING:BOOL="$RELEASE_CRASH_REPORTING" \
      -DVIEWER_SYMBOL_FILE:STRING="${VIEWER_SYMBOL_FILE:-}" \
      -DBUGSPLAT_DB:STRING="${BUGSPLAT_DB:-}" \
diff --git a/indra/llcommon/StackWalker.cpp b/indra/llcommon/StackWalker.cpp
index d34ad9a3695b6ace7165c209de554e3a02656a2f..7a7230db4b7916d3a071542fe3b5447cdac3b780 100644
--- a/indra/llcommon/StackWalker.cpp
+++ b/indra/llcommon/StackWalker.cpp
@@ -98,7 +98,10 @@
 // If VC7 and later, then use the shipped 'dbghelp.h'-file
 #pragma pack(push,8)
 #if _MSC_VER >= 1300
+#pragma warning (push)
+#pragma warning (disable:4091) // a microsoft header has warnings. Very nice.
 #include <dbghelp.h>
+#pragma warning (pop)
 #else
 // inline the important dbghelp.h-declarations...
 typedef enum {
diff --git a/indra/newview/llwindebug.h b/indra/newview/llwindebug.h
index 7e5818ba1c1d6bf4992e137a99972b3023f451a3..05f245b311429c3aaa94787344ee0c48905282ae 100644
--- a/indra/newview/llwindebug.h
+++ b/indra/newview/llwindebug.h
@@ -29,7 +29,11 @@
 
 #include "stdtypes.h"
 #include "llwin32headerslean.h"
+
+#pragma warning (push)
+#pragma warning (disable:4091) // a microsoft header has warnings. Very nice.
 #include <dbghelp.h>
+#pragma warning (pop)
 
 class LLWinDebug:
 	public LLSingleton<LLWinDebug>