Fixed Xcode 5.0.2 unit test build issue. Cleaned some build/analysis warnings.