Periodic solutions for a class of non-autonomous second order systems