Fix to compile with clang on Mac OS X