Added an #include <string.h> to get memcpy properly defined