A bunch of small issues such as unitialized variables etc. These gave errors with the MSVC compiler, and I thought it may be good to fix them, they are potentially risky. These changes are not tested, but at least compiles - the most risky is probably in mash.
Sort: now creates the tmp directory automatically on Windows - this didn't work before and gave no good error message
Sort: Made a workaround for the problem that sort didn't work on windows (read 0 bus records). This is virtually the same as using -m 100000000
Three things: