Improved CMake build.
gcc also supports diagnostics push/pop