Thermodynamics of solids: Corrections from electron-phonon interactions