add nbtool_config.h
sync with FreeBSD
check and fix printf formats, negative array indices, uninitialized variables,shadowed variables.
Import the rest of Opensolaris 20081117 needed for DTrace. No conflictswith ZFS.