diff --git a/monetdb/msvc/monetdb_config.h b/monetdb/msvc/monetdb_config.h
index 11be9fb..d47fef2 100644
--- a/monetdb/msvc/monetdb_config.h
+++ b/monetdb/msvc/monetdb_config.h
@@ -351,7 +351,7 @@ typedef __uint128_t uhge;
 #define __attribute__(a)
 #endif
 
-#if !defined(__cplusplus) || __cplusplus < 201103L
+#if !defined(__cplusplus) || (__cplusplus < 201103L&&(!defined(_MSC_VER)||_MSC_VER<1600))
 #ifndef static_assert
 /* static_assert is a C11/C++11 feature, defined in assert.h which also exists
  * in many other compilers we ignore it if the compiler doesn't support it
diff --git a/msc-plugin/msc-plugin.vcxproj b/msc-plugin/msc-plugin.vcxproj
index 7bc92bd..9dc1824 100644
--- a/msc-plugin/msc-plugin.vcxproj
+++ b/msc-plugin/msc-plugin.vcxproj
@@ -30,14 +30,14 @@
   
     DynamicLibrary
     true
-    v143
+    v142
     Unicode
     false
   
   
     DynamicLibrary
     false
-    v143
+    v142
     true
     Unicode
     true
@@ -45,7 +45,7 @@
   
     DynamicLibrary
     true
-    v143
+    v142
     Unicode
     false
     false
@@ -53,7 +53,7 @@
   
     DynamicLibrary
     false
-    v143
+    v142
     true
     Unicode
     true
@@ -102,6 +102,7 @@
       Guard
       true
       $(ProjectDir)\..\monetdb\msvc
+      /WL %(AdditionalOptions)
     
     
       Console
@@ -119,8 +120,9 @@
       true
       _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
       true
-      stdcpplatest
+      stdcpp17
       $(ProjectDir)\..\monetdb\msvc
+      Default
     
     
       Console
@@ -146,6 +148,7 @@
       true
       false
       $(ProjectDir)\..\monetdb\msvc
+      /WL %(AdditionalOptions)
     
     
       Console
@@ -163,8 +166,9 @@
       true
       _CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
       true
-      stdcpplatest
+      stdcpp17
       $(ProjectDir)\..\monetdb\msvc
+      Default
     
     
       Console
diff --git a/requirements.txt b/requirements.txt
index 5e69829..9218a72 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
-mo-future
-mo-dots
-mo-parsing
-mo-imports
+mo-future==6.2.21303
+mo-dots==9.173.22126
+mo-parsing==8.183.22158
+mo-imports==7.169.22121
 dataclasses; python_version < '3.7'
 readline; sys_platform == 'linux'
 numpy
diff --git a/server/table.h b/server/table.h
index 79853a7..4dcc4ec 100644
--- a/server/table.h
+++ b/server/table.h
@@ -8,6 +8,7 @@
 #include 
 #include 
 #include "io.h"
+#undef ERROR
 template 
 class vector_type;
 template <>
@@ -30,7 +31,7 @@ class ColRef : public vector_type<_Ty>
 public:
 	typedef ColRef<_Ty> Decayed_t;
 	const char* name;
-	types::Type_t ty = types::ERROR;
+	types::Type_t ty = types::Type_t::ERROR;
 	ColRef() : vector_type<_Ty>(0), name("") {}
 	ColRef(const uint32_t& size, const char* name = "") : vector_type<_Ty>(size), name(name) {}
 	ColRef(const char* name) : name(name) {}