Migrate to thrift 1.0