Fix #167 by added special detection for whether query timeout is supported by the driver.