Use mingw filesystem macros.