Fix thrift build