added missing #[repr(C)] to structs.