Proper workaround for OpenCV loading errors