Fixes to allow compiling (with --enable-debug).

NOTE: The Illumos commit left behind the now-unused dsl_dataset_namelen()
function in dsl_dataset.c.  I've removed it.