script: ffmpeg link to static libgcc/pthread for mingw. remove useless
options for some platforms