added string.h, in Linux we need include it to use memcpy