Fixed legacy dependencies to cv c api