fixes for using FFMPEG on windows

these allow builds on windows using latest ffmpeg