fixing build with dynamic OpenCV