Reversible extensions of irreversible dynamical systems: the C*-method