Define BOOST_NO_RTTI when rtti is off so that old versions of GCC could work correctly with Boost