Fixed the serial compilation with exceptions