lib: implement gnu c version memcopy & String