Anomalies in covariant W gravity