Revert "load -lnsl and -lsocket if necessary"

This reverts commit edbc9a48428967ff5d789aeae600dda19f4025d6.
libc and libsocket are in the JVM already, we do not need to dynload them
lots of cleanup/finalization/findbugs fixes