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

Turns out there's not a lot of difference between 32bit and 64bit
ELF headers and program headers.