apply patch #2686
Merge pull request #383 from cuda-geek:apply-opencv-macosx-patch