Fix warnings on Xcode 6