build: use -fvisibility=hidden if available.

Signed-off-by: Evan Nemerson <evan@coeus-group.com>