Heating of Intergalactic Gas and Cluster Scaling Relations