tweak some OpenCV stuff so it compiles on my machines