Thermal fluctuations of gauge fields and first order phase transitions in color superconductivity