[thrift] clean up some warnings under clang