Fix compilation with older FFMpeg versions