Revert "lib/memcopy: use glibc version"

This reverts commit 746298a19806ed3392d3fce27c6a83e235f3eda1.