avio: fix "discards const qualifier from pointer target type" warning