Make Boost.Test work with RTTI off

This patch fixes GCC and CLANG compilation when RTTI is off. Tested on clang-3.0, clang-3.4. gcc-4.6

This patch is essential for Boost.TypeIndex library which must be tested with RTTI off and RTTI on.