Use gcc visibility feature to decrease number of exported symbols to half.