compiler: cpp: improving exception support