Revert "lib/memcopy: use glibc version"

This reverts commit 40bd54f17608c72512566e243d2c18c01babc1a8.