libav: do not build avio and avformat on MERGE_FFMPEG (fixes #10251)