Fix shitload of memleaks on ELF