fixes for using FFMPEG on windows