added -lpthread key to link pthread as it is required by google protobuf;