Fix CMakeLists.txt for MSVC

if(<string> MATCHES ...) cause incorrect definition for MSVC. Reference: http://stackoverflow.com/questions/21995777/cygwins-cmake-does-not-match-for-cmake-system-name
Merge pull request #184 from harrysummer/patch-1

Fix CMakeLists.txt for MSVC