fixed a compiler problem with newer OpenCV/GCC versions