configure: Try and fix msvc ffmpeg build

- with credit to dblain for the solution