Fix several issues with cacti exports:

- Add missing library for dealing with tree objects
- Pass SNMPv3-specific parameters to Cacti
- Fix broken selection of 32 vs 64 bit counters for interfaces