add thrift dependencies