getcwd: fix compilation on mingw64