[configure] fix static linking when ffmpeg found nettle/hogweed