Integrated Infrared Colors of Star Clusters in the Galaxy and M31