fix anomaly build error without --enable-zookeeper