Fix compilation with --with-static-ffmpeg

Fix compilation when linking statically against the bundled version of ffmpeg.