Add loadDynlib to micropip._compat (split off from #2591). More work split off of #2591 because #2591 mysteriously fails *all* the github actions tests, even though #2591 currently only changes micropip and not all tests load micropip.
#include <exception>
#include <typeinfo>
using namespace std;

extern "C"
{

  const char* exc_what(exception& e)
  {
    return e.what();
  }

  const std::type_info* exc_type()
  {
    return &typeid(exception);
  }

  const char* exc_typename(std::type_info* type)
  {
    return type->name();
  }
}

#include <exception>
#include <typeinfo>
using namespace std;

extern "C"
{

  const char* exc_what(exception& e)
  {
    return e.what();
  }

  const std::type_info* exc_type()
  {
    return &typeid(exception);
  }

  const char* exc_typename(std::type_info* type)
  {
    return type->name();
  }
}
