Fix opencv3

I am still using your library after upgrading to OpenCV 3.0. This pull request change the library based on OpenCV 3.0 by correctly converting IplImage to Mat. 
In the example part, I change CV_WINDOW_NORMAL to WINDOW_NORMAL

Resolve #16.