Added a cmake option to enable/disable RTTI.

By default, RTTI is disabled, but it can be turned on in cmake now, instead of having to edit src/CMakeLists.txt.