Fixed many non-stupid warnings in ELF code