fix yapsnmp configure when swig is detected on the host system