Alignment fixes & global initializations in main.

Fixed up several places to be friendly for targets that don't like
misaligned memory accesses.
Added more initialization to the top of main() for statics/globals that
were previously only initialized at exe startup.