internally build OpenCV library.

Due to te fact that legacy part of the OpenCV library is not built
in Ubuntu's OpenCV package we need to build OpenCV as an external project.