trying RTLD_GLOBAL to solve RTTI problem