Use standard ints in write_kafka plugin for portability