lib: use glibc's memcopy and memmove instead of ARCH's

Change-Id: Ia140f803fbac75b5f6fdc119cab5097460e572c3
Signed-off-by: zwliew <zhaoweiliew@gmail.com>