The exact reason is unclear, but we might as well link just the few libraries that are actually needed for ffmpeg.