Add header needed for clang compilation

Clang requires the full declaration of cms::Exception before the implementation of wrap.