Juce browser plugin doesn't work with -fvisibility=hidden

Hi,
I’m working on a project that requires me to hide symbols by default using -fvisibility=hidden -fvisibility-inlines-hidden flags. I’ve tried using this flags both on my project as well as on Juce browser plugin demo project and if shared library is compiled with this flags, plugin fails to embed.
I’m using Mac OSX 10.8.4, Xcode 4.6.3 gcc 4.2.1.
Thanks.