Fix thrift 0.9.1 issue to get travis builds green