fixed compilation errors in rebalance daemon