add missing cstring include for memcpy