Fix ocv 2.4 build