Use std::exception in c++11 mode.
Merge branch 'master' into typed-log