Workaround the MSYS character escaping bug on native mingw builds only.

It was triggered on cross builds only before, so that native builds with the DevKit didn't work.
Merge pull request #1061 from larskanis/fix-msys-escape-workaround

Workaround the MSYS character escaping bug on native mingw builds only.