Update to xcode 4.6, Changed and fixed deprecated methods