Declare VideoCapture::get and CvCapture::getProperty as constant methods.