diff --git a/builds/msvc/properties/Common.props b/builds/msvc/properties/Common.props
index 72588d6e..6e10d886 100644
--- a/builds/msvc/properties/Common.props
+++ b/builds/msvc/properties/Common.props
@@ -14,8 +14,10 @@
true
UNICODE;_UNICODE;%(PreprocessorDefinitions)
+ NATIVE_LITTLE_ENDIAN=1;%(PreprocessorDefinitions)
+ inline=__inline;%(PreprocessorDefinitions)
Level3
-
\ No newline at end of file
+
diff --git a/configure.ac b/configure.ac
index fb380926..a612af18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -409,8 +409,7 @@ dnl Checks for functions and headers
AS_IF([test "x$EMSCRIPTEN" = "x"],[
AC_CHECK_FUNCS([arc4random arc4random_buf])
])
-AC_CHECK_FUNCS([mlock VirtualLock])
-AC_CHECK_FUNCS([SecureZeroMemory explicit_bzero posix_memalign])
+AC_CHECK_FUNCS([mlock explicit_bzero posix_memalign])
AC_SUBST([LIBTOOL_EXTRA_FLAGS])
diff --git a/msvc-scripts/sodium.props b/msvc-scripts/sodium.props
index d68425a1..613cbd0a 100644
--- a/msvc-scripts/sodium.props
+++ b/msvc-scripts/sodium.props
@@ -6,7 +6,10 @@
$(SolutionDir);$(SolutionDir)src\libsodium\include\sodium;$(SolutionDir)src\libsodium\include;%(AdditionalIncludeDirectories)
- inline=__inline;NATIVE_LITTLE_ENDIAN;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ UNICODE;_UNICODE;%(PreprocessorDefinitions)
+ NATIVE_LITTLE_ENDIAN=1;%(PreprocessorDefinitions)
+ inline=__inline;%(PreprocessorDefinitions)
$(SolutionDir)/msvc-scripts/process.bat