Anomalies, U(1)' and the MSSM