Fixed windows build.

- Fixed the original visual studio project so that inline gets defined.
- Fix error in CMake with zlib.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2740c5a..6baaf91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -308,7 +308,7 @@
 
 	# Set the same variables as find_package would.
 	set(ZLIB_INCLUDE_DIRS ${WIN32_ZLIB_PATH})
-	get_property(ZLIB_LIBRARIES TARGET zlib PROPERTY LOCATION)
+	get_property(ZLIB_LIBRARIES TARGET ZLIB PROPERTY LOCATION)
 	set(ZLIB_FOUND 1)
 else()
 	find_package(ZLIB REQUIRED)