Fix build w/ OpenCV, fix cppcheck warnings