Fix building on older versions on FFMpeg