Fix compilation errors when ffmpeg is installed but libav is not.