Fixing warnings and deprecations.
Updating project for Xcode 5.