unmanaged struct issue - C#