Merge pull request #4 from jpochyla/master

MSVC compatibility fixes
add cmake file with c++ compilation on MSVC