allow extra library path to be specified in build

this allows us to use the protobuf library provided by conda, instead of the system one

-Wno-unused-parameter is needed, since newer versions of the protobuf compiler will generate code which has unused parameters. Alternatively, we could set -Wno-error=unused-parameter, but then we'll get compile spam on each build