FFmpeg doesn't use the same version numbers than Libav

Found-by: Timo Rothenpieler
Add LIBAVUTIL_VERSION_CHECK (based on LIBAVCODEC_VERSION_CHECK)
Use precise version check for FFmpeg/libav

Pointed-out-by: thresh