fix various memleak + activate asm for ios