Fix undefined symbol: __dynamic_cast