CodeGen: don't output ~ for both Not and Neg.
windows.h: more defines for saner output with proper attributes.