Fix compilation on OS X.

- without this linking fails on OS X (10.9)
 - not sure if directly referencing protobuf is the right thing here, or if
   gazebo's pkg-config should export the protobuf flags?