fix zfs compilation on MSVC