Infinitesimal moduli for the Strominger system and Killing spinors in generalized geometry