Modified to support Thrift 0.9.0
Modified to support Thrift 0.9.0