allow build on linux

This commit changes from c library memcpy & memmove to c++, additionally- cstring is explicitly included which allows compilation on my machine.