Fix compiler & analyzer warnings for iOS6.

Hi Bruno, thought you might like to include these now that iOS7 has been released.