fix for win32 option parsing via mingw32
fixes for mingw win64