Use gcc visibility to avoid unecessary symbol exports.