fix to make build pass on OSX with clang