Fixes for compiling with MinGW and GCC on Win32 more generally. - Some options got swallowed sometime in the past because of checking local var instead of target var (on-windows). The options are now present again. - Fix incorrect path separators for when not in Unix. - Fix some missing quotes for commands. Part of SF issue #898333. - Verified that building with the MinGW in the Dev-CPP environment works.