Use gcc visibility to reduce unnecessary symbol exports