Fix build on OS X/clang