mods to work with thrift 0.9.0