added test cvHasQt
fixed cvHasQt for OpenCV-2.3.x