Avoid build errors from glibmm's use of dynamic exception specifications.