Reduce dependency on external libs for snmp module.