changes for new versions of opencv and ice