Implement support for older version of collectd

Tested on collectd v4.10.1, which is packaged in Ubuntu Precise