Fix compile-time warnings on OSX.