add support for opencv 2.4.5 and 2.4.6