Revert "lib/memcopy: use glibc version"

This reverts commit b25a7a3d23da49609fd2c2a4d6ee62d56f3c1545.