diff --git a/LuaInterface/Lua/src/lua514.vcxproj b/LuaInterface/Lua/src/lua514.vcxproj
index 33a9324ea5..536d9ff782 100644
--- a/LuaInterface/Lua/src/lua514.vcxproj
+++ b/LuaInterface/Lua/src/lua514.vcxproj
@@ -92,6 +92,7 @@
Level3
ProgramDatabase
4996;%(DisableSpecificWarnings)
+ /Zc:threadSafeInit- %(AdditionalOptions)
gdi32.lib;opengl32.lib;shell32.lib;user32.lib;comctl32.lib;kernel32.lib;ws2_32.lib;psapi.lib;AdvAPI32.Lib;ole32.lib;mpr.lib;comdlg32.lib;WinSpool.Lib
@@ -116,6 +117,7 @@
4996;%(DisableSpecificWarnings)
Cdecl
_WINDLL;%(PreprocessorDefinitions)
+ /Zc:threadSafeInit- %(AdditionalOptions)
.libs\luaperks.lib;gdi32.lib;opengl32.lib;shell32.lib;user32.lib;comctl32.lib;kernel32.lib;ws2_32.lib;psapi.lib;AdvAPI32.Lib;ole32.lib;mpr.lib;comdlg32.lib;WinSpool.Lib
@@ -158,6 +160,7 @@
4996;%(DisableSpecificWarnings)
Cdecl
LUAPERKS;_WINDLL;%(PreprocessorDefinitions)
+ /Zc:threadSafeInit- %(AdditionalOptions)
.libs\luaperks.lib;gdi32.lib;opengl32.lib;shell32.lib;user32.lib;comctl32.lib;kernel32.lib;ws2_32.lib;psapi.lib;AdvAPI32.Lib;ole32.lib;mpr.lib;comdlg32.lib;WinSpool.Lib
diff --git a/LuaInterface/LuaInterface.sln b/LuaInterface/LuaInterface.sln
index 50776a5a8e..56fb380ace 100644
--- a/LuaInterface/LuaInterface.sln
+++ b/LuaInterface/LuaInterface.sln
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+# Visual Studio 2015
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lua51", "Lua\src\lua514.vcxproj", "{0A82CC4C-9A27-461C-8DB0-A65AC6393748}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LuaInterface", "LuaInterface\LuaInterface.csproj", "{F55CABBB-4108-4A39-94E1-581FD46DC021}"
diff --git a/References/lua51.dll b/References/lua51.dll
index 4e4316442d..22650d2c6f 100644
Binary files a/References/lua51.dll and b/References/lua51.dll differ