On the quasistatic limit of some dynamical problems with dissipative terms