Added thrift version detection and enforcement