Fix issue 12965 - DMD sets ELFOSABI to ELFOSABI_LINUX on all systems

This will properly set the ELF OSABI field based on the target (for ELF targets).