Add --no-exceptions command line option

Necessary when compiling with C++ exceptions disabled.

At some point it would be nice to convert tests to use it, and remote the
exception handling code.