Fix building tests with clang on OS X.