fix thrift bug on windows