fixed memcpy build issue