fix some xcode warnings