support kafka 0.8.1 and optimize getKafkaConfigProperties