backport of collectd 5.1.0 graphite write to 4.10 (ubuntu 12.04)