Fixed some dead code elimination bugs relating to macros.  Added dead global elimination.