Revert "lib/string & lib/memcpy: use GNU implementation."

This reverts commit 844662f4e24cc889f0b1e4a101605f9acdde6133.