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