CMake: Disable RTTI when using GCC.