How to extend any dynamical system so that it becomes isochronous, asymptotically isochronous or multi-periodic