Prefer cmake over pkg-config when setting up OpenCV configuration

pkg-config support in OpenCV-2.4 is somewhat broken:
http://code.opencv.org/issues/1925