cmake fix for windows

`-Wno-shadow -Wno-error` not supported on windows.
Should be

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-shadow -Wno-error")