Make the service_registry's usage of typeid work when the default gcc linker visibility is set to hidden.