Make cmake find libavif 1.0 and adapt to API changes (which is reverting to pre 0.9.2 API)
mentioned in commit bcec942c