ar.exe on Windows doesn't like back slashes in a response file, therefore we (cmake) use slashes as directory separator for mingw build files. Only then ninja writes slashes to the response file.
Also on Windows a slash could not be part of a filename, so this patch is not critical.
also accept paths with slashes on windows
fixed in generator