random cleanup/fixes

Some of them Win-specific.
Also added an llvm ir annotator based on llvm-dis.
Nice!