random cleanup/fixes

Some of them Win-specific.
Also added an llvm ir annotator based on llvm-dis.
Didn't make a big difference on Windows. But now it occurs to me this is because we only have line tables.