Backward compatible changes to support Kafka cross-compilation for Scala 2.8, 2.9 and 2.10