Fix OpenCV detection on OSX