fix zts build on mac/clang