Optimized lib/memcopy and lib/string