fixed build to handle MSVC version
Merge pull request #1 from snikulov/master

Fixed CMakeLists.txt to handle MSVC version