gui: Fix build when OpenCV is not available or disabled.