Update for Windows

Update code so that it compiles on Windows XP; after bringing the GUI
up-to-date the only other significant change is #if around soft/hard
links (which don't really make sense on FAT or NTFS file systems) and
making sure the mkdir() which creates directories recursively works as
expected.