fixed allreduce compile bug