Update elf builder to handle statically linked binaries