On the dust temperatures of high-redshift galaxies