Porting a library that requires RTTI exception and STL support