Minor fix for OpenCV 2.4.8