Add hadoop Configuration to Avro and Thrift writers (#295).