build thrift