Fix visibility support in gcc; allows glib rebuild