Enable exceptions for Solaris.