random cleanup/fixes

Some of them Win-specific.
Also added an llvm ir annotator based on llvm-dis.
Note that this only affects the test-runner.