A functional light-cone gauge construction of heterotic string amplitudes