CMake fixes to compile under OSX 10.6+
Temporary solution when OpenCV isn't compiled against Qt