Switch between OpenCV versions at light speed