Updated pegasus and build script in xwl; gemini to use globals.