Added cmake option to enable/disable RTTI.