--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,8 +55,8 @@
 	target_link_libraries(test-inline PUBLIC ${LIBM})
 	
 	# C++ tests
-	file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/zxcvbn.c ${CMAKE_CURRENT_BINARY_DIR}/zxcvbn.cpp SYMBOLIC)
-	file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/test.c ${CMAKE_CURRENT_BINARY_DIR}/test.cpp SYMBOLIC)
+	file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/zxcvbn.c ${CMAKE_CURRENT_BINARY_DIR}/zxcvbn.cpp)
+	file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/test.c ${CMAKE_CURRENT_BINARY_DIR}/test.cpp)
 	
 	add_executable(test-c++file ${CMAKE_CURRENT_BINARY_DIR}/test.cpp ${CMAKE_CURRENT_BINARY_DIR}/zxcvbn.cpp dict-src.h dict-crc.h zxcvbn.h)
 	target_compile_definitions(test-c++file PRIVATE USE_DICT_FILE)
--- a/test.c
+++ b/test.c
@@ -29,7 +29,7 @@
 #include <zxcvbn.h>
 
 /* For pre-compiled headers under windows */
-#ifdef _WIN32
+#ifdef _MSC_VER
 #include "stdafx.h"
 #endif
 
--- a/zxcvbn.c
+++ b/zxcvbn.c
@@ -45,7 +45,7 @@
 #endif
 
 /* For pre-compiled headers under windows */
-#ifdef _WIN32
+#ifdef _MSC_VER
 #include "stdafx.h"
 #endif
 
