Fix OpenCV/Ubuntu build, disable debugging code