On the Anomalies and Schwinger Terms in Noncommutative Gauge Theories