Thermal properties of the magnetic RuSr2GdCu2O8 superconductor