Fixing Xcode 6 warnings