Fix build elf
Add the needed changes to Makefile.am as well

XXX: This doesn't include the regeneration of ld/Makefile.in, as I don't have the correct automake version
available.
Verify up-front that build_id specified on command line is valid