efi: libstub: Clone memcmp() into the stub