Fixed some xcode warnings