Long time dynamics for damped Klein-Gordon equations