zdb fixes. history_log would log with tx=NULL causing core dump.
vdev_file_open() would not set the filesize correctly for userland
calls.

Many zdb options require /etc/zfs/zpool.cache to exist, which currently
may need manual renaming due to missing kernel framework.