port to native windows api

the previous code internally would use _stat which has a number of
defects: it doesn't correctly support symlinks (or junctions for that
matter), and it doesn't work with large files to the point where
anything >4gb just didn't register at all

instead use the native win32 api for file attributes to fix both issues
3 jobs for !19 with release/22.04 in 1 minute and 47 seconds (queued for 1 minute and 59 seconds)
latest merge request