fix build without rtti