This diff adds detection for the
__attribute__((visibility("default"))) and
__attribute__((visibility("default"))) visibility function attributes.
This allow to export the expected symbols when building a shared library
while using fvisibility=hidden.