fix clean build on mac/clang