Fix for gcc12
@rmatev this should fix the issues observed in https://lhcb-nightlies.web.cern.ch/nightly/lhcb-head-2/918/ with gcc12. Added all-slots
@rmatev this should fix the issues observed in https://lhcb-nightlies.web.cern.ch/nightly/lhcb-head-2/918/ with gcc12. Added all-slots