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

https://d.puremagic.com/issues/show_bug.cgi?id=12165

Unfortunately I can't add tests because creating the symlinks/junctions is fairly involved, except for very recent Windows versions.