Building a simple program with OpenCV