An American Airlines flight from New York to Spain was forced to land in Boston after the craft's windshield cracked.