cmake: Don't run gcc/clang compiler checks under MSVC

These options and flags don't work with MSVC, so it avoids a long list of warnings when running cmake on Windows.