Revise mingw_stat to minimise changes from upstream BusyBox