Comment #5 on issue 128 by ken...@google.com: Can not dlopen a library
using a protobuf message twice
Statically linking libprotobuf into your dynamic library will work as long
as protobufs are entirely encapsulated within your library's implementation
and not exposed in the interface. It may be a little tricky to convince
gcc to link libprotobuf statically without linking everything statically,
but it should be doable -- I think it works if you explicitly pass
libprotobuf.a on the command line instead of the usual "-lprotobuf".