Compile thrift