I2C: fixed compilation errors.