Fix examples for iOS7

Makes several fixes to get sample apps to compile & build for iOS7.