Fixing compilation with clang on MacOS X