std.file: Fix rmdirRecurse and symlinks/junctions on Windows

Unfortunately I can't add tests because creating the symlinks/junctions is fairly involved, except for very recent Windows versions.