Fix Linux specific fail in error traces
Linux apparently does not like memcpy in overlapping regions...