[HSA-706 Fix] Compile without RTTI