fix linking order to unbreak linux builds against static protobuf and libz