Wave equations with mass and dissipation