Fixed iOS 7 deprecation issues. Updated project for newer versions of Xc...

...ode.