Fixes to make plugin builds work on non-dataset zfs filesystems