[PATCH 6.6 155/393] libbpf: Fix segfault due to libelf functions not setting errno