Fixed compiling targets for Linux with OpenCV.

Fixed compiling targets for Linux with OpenCV.