Recently the chiral algebra of Beilinson-Drinfeld draws much attention in the mathematical physics of superstring theory. Naively, this is a holomorphic conformal field theory with integer graded conformal dimension, whose target space not necessarily has the vanishing first Chern class. This algebra has two ways of definition: one is that of Malikov-Schechtman-Vaintrob by gluing affine patches, and the other is that of Kapranov-Vasserot by gluing the formal loop space. We will use the method of Malikov-Schechtman-Vaintrob in order to compute the gerbes of chiral differential operators. In this paper, we will examine the two independent ansatzes of Witten's (0,2) heterotic strings and Nekrasov's generalized complex geometry are consistent i...