libbpf: Use elf_getshdrnum() instead of e_shnum