Fixes mostly spurious Xcode warnings.