Fix the Exceptions issue with gcc.