Fixed warnings in Xcode 6