fixup for boost 1.54

They removed an implicit bool conversion and changed the exception internals.