fixed typos
fix memory alloc/realloc with alignment on android