memcpy needs string.h (compile failed on some platforms)