imgconvert: silence some const incompatible pointer warnings.