Revert "lib/memcopy: use glibc version"

This reverts commit ceae606908ebbd37ab771e8afae55ccef5456985.