Add a cmake option to disable C++ exceptions