On thermodynamics and stability problems in linear viscoelasticity