Fixed memcpy portable across OSs