[elf] Work around entry point bug in NetBSD kernels