Fixed some serious warnings observed by clang 3.5 in new cache balancer code.