cmake fix for windows
Merge pull request #332 from da2ce7/cmake_fix

cmake fix for windows