fixed kafka 0.8 compilation issues