Added the gen library to xyz changed to legacy compiler option