Fixed warnings after update the project to Xcode6