fix configure and thrift path