Fix up formatting of Emscripten #if and use std::uncaught_exception