fixe compilation with clang on mac

weird workaround is necessary