fix for Mac/clang