Add a #ifdef to include libavcodec/opt.h only for older ffmpeg's which have it