Fix --enable-debug build.

Some minor porting from IllumOS was left over in ASSERTs, that mostly
just needed to be ignored.