Add support for dealing with Windows-style paths on Cygwin
Add support for Windows build on MinGW