Revert "lib/memcopy: use glibc version"

This reverts commit c212f2c51b7aaafe04dcd436228d86c49624c97b.