Fixes Xcode 6 warnings

Fixes Xcode 6 warnings