The X-ray spectra of the first galaxies: 21 cm signatures