Avoid crash when using typeid before #include typeinfo