[PATCH 6.13 256/623] libbpf: Fix segfault due to libelf functions not setting errno