opencv: switch eigen and openexr to optional

Eigen and OpenEXR are special-case (interoperability) libraries and
are not needed for general purpose usage of OpenCV.

Closes #874.