CUDA + OpenCV on Mavericks

pull request for: https://github.com/Homebrew/homebrew-science/issues/1182

Additionally, if compiling your own code using CUDA + OpenCV you should switch to use opencv 2.4.10
(so far commented out in this pull request). OpenCV 2.4.10 includes the bugfix https://github.com/bhack/opencv/commit/32f6e1a554dea1849ee3a53fea171cbd5969ef41, which fixes errors like in (http://code.opencv.org/issues/3911):
/usr/local/include/opencv2/core/mat.hpp(117): error: type name is not allowed
/usr/local/include/opencv2/core/mat.hpp(117): error: identifier "_Atomic" is undefined