target darwin on Travis

also a few more elf.c tweaks