random cleanup/fixes

Some of them Win-specific.
Also added an llvm ir annotator based on llvm-dis.
The linker does that in our case.
It's a pity there's no switch for that on Posix. It's perfectly doable by hand with binutils.