fix "elf.h not found" error when compiled on OS X