Added OpenCV libraries to linking.

I found that if the system OpenCV differs from OpenCV specified using `OpenCV_DIR` I had to add this to the CMake file to avoid linking errors.