libefi: Move EFI ZFS functions to libefi