Tweaked some CMake rules that are used on Windows.