added thrift version detection from configure.ac