elf: use 64bit elf headers when building in 64bit mode