Fixed multiple warnings that now appear in latest Xcode