cmake fix for windows

`-Wno-shadow -Wno-error` not supported on windows.
You can remove this line. It doesn't do anything :)