added ZFS_SUPPORT flag, fixed some dependencies