efi: move fdt helper library