Flat Gauge Fields and the Riemann-Hilbert Correspondence