fix c# struct layout