On the thermodynamics of non-hydrostatically stressed solids