Fix building with extensible exceptions