fix error in mingw version of realpath()