bin/dsm: don't use private members of bdsm structs

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Hide non public headers

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
DEBUG: add BDSM_perror

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
use static

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
use calloc

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
add netbios_ns_abort

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>