Fix compilation on OSX with Clang