[configure] make sure we link against all libs ffmpeg does, when linking ffmpeg statically

We don't know which libs ffmpeg links against on various linux distributions, so we must make sure that we link xbmc against all of them. Only applies when we link ffmpeg statically