protobuf build stuff

compile in the needed protobuf usermessage junk, and fix building on osx