Uniform H-matrix Compression with Applications to Boundary Integral Equations