[PATCH 6.1 104/578] libbpf: Fix segfault due to libelf functions not setting errno