[PATCH 6.12 242/590] libbpf: Fix segfault due to libelf functions not setting errno