configure.ac: add OpenCV explicit checks at configure time

This fixes #6 on Ubuntu 12.04 LTS.  If other distros package libraries differently we may need to have more coverage checking for more linked against libraries (OpenCV has a lot of them).