fix compile errors in cv package