mingw: remove use of _getdrive() from lstat/fstat