fix compilation on clang (I think), by no longer doing threads