Threshold corrections and symmetry enhancement in string compactifications