Use $(LD) not ld. Include right headers for x86 ELF bits. Signed-off-by: John Levon <john.levon@sun.com>