cmake fix for windows

`-Wno-shadow -Wno-error` not supported on windows.