Supergravity and matter: linear multiplet couplings and Kähler anomaly cancellation