Replace the relatively heavy iostream with the lightweight alternative iosfwd that provides a forward declaration for std::ostream in CbmDefs.h.
iostream
iosfwd
std::ostream
CbmDefs.h
Edit: Also see here, why it's useful to avoid including iostream when it's not needed.