Use #[repr(C)] for FFI structs