Fixes panic: Darwin requires non-NULL 3rd arg to copyinstr. Fixes panic: zfs_set_version should use new spa_history_log_internal not old MacZFS spa_history_internal_log. And lastly: don't free history string from userland before the ioctl can use it.