Upgrade thrift to 0.9.1
Update thrift api.