fix armelf sanitization and earmelf.c dependencies