fixed compile error with opencv/master(2.5)