Fix no-exception handling build with GCC.