Disable rtti for gcc.

It is the same logic as in workspace_tools/toolchains/arm.py.