Fixes for building on OSX

The changes to OTLog.cpp are necessary as OSX uses libc++ where exception_ptr.h doesn't exist.