Patch for thrift.el