Fixed build on snmp