Fix xcode 4.6 warnings