Fix OpenCV-related build error on Mac OS X