Fix compiler warnings on Apple Clang 4.2.