cmake fix for windows

`-Wno-shadow -Wno-error` not supported on windows.
Good note! Will change.