ensure c++ exceptions are enabled