fix for dnet under debian
fix for dnet under debian. cleanup.