Integration of a CO2 capture unit on an internal combustion engine