Ramp up warnings on iPhone project and fix almost all current issues.

Remaining issues need closer attention, the ones fixed in this commit
were easy to do.