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