remove special hack for fstat and mingw