FlattenGlobals: Remove dead users before trying to replace (fixes type mismatch assertion).
PNaClSjLjEH: Module::getOrInsertGlobal creates a bitcast for us if its type
isn't what we wanted. This behaviour was tripping an assert in cast.