On anomalies in orbifold theories