thrift compilation issues fixed