Fix compilation error with exception names