Build OpenCV in CI with warnings as errors
This is intended to catch potential issues in adapters/opencv.
It is necessary to remove -DOPENCV_DISABLE_THREAD_SUPPORT=ON otherwise the build will fail with a warning about unused function getNumberOfCPUsImpl.