use LIBADD instead of LDADD/DPADD
Need to close socket instances for 'netstat -a'