Add thrift dependency.