COMPACTIFICATIONS OF STRING THEORY AND GENERALIZED GEOMETRY