Resolving clang analyzer issues found in Xcode5