Massive binaries as the source of abundance anomalies in globular clusters