Fix compiler warnings on Darwin.

The compiler there is particularly persnickety, so tell it what it wants to
hear.