Fix compilation with recent ffmpeg versions