PLAT-539:
  log exceptions in one shot on stderr, to reduce the risk of display mishmash caused by thread concurrency
  avoid allocations when std::bad_alloc is thrown
  added a char * version of demangle, suitable for use in a buffer, in addition to the std::string version
  added a char * version of backtrace, suitable for use in a preallocated buffer