I Posted before the long compile had completed, I've got more errors:
../../../src/Draw/Draw_Window.cxx: In destructor 'virtual Draw_Window::~Draw_Window()':
../../../src/Draw/Draw_Window.cxx:317: error: 'XFreePixmap' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::Init(Standard_Integer, Standard_Integer, Standard_Integer, Standard_Integer)':
../../../src/Draw/Draw_Window.cxx:361: error: 'XCreateWindow' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:363: error: 'XSelectInput' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:375: error: 'XCreateGC' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:377: error: 'XSetPlaneMask' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:379: error: 'XSetForeground' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:381: error: 'XSetBackground' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:386: error: 'XChangeWindowAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:389: error: 'XSetLineAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::InitBuffer()':
../../../src/Draw/Draw_Window.cxx:400: error: 'XFreePixmap' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:403: error: 'XGetWindowAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:404: error: 'XCreatePixmap' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:408: error: 'XFreePixmap' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::StopWinManager()':
../../../src/Draw/Draw_Window.cxx:421: error: 'XGetWindowAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:442: error: 'XCreateWindow' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:449: error: 'XSelectInput' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::SetPosition(Standard_Integer, Standard_Integer)':
../../../src/Draw/Draw_Window.cxx:463: error: 'XMoveWindow' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::SetDimension(Standard_Integer, Standard_Integer)':
../../../src/Draw/Draw_Window.cxx:474: error: 'XResizeWindow' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::GetPosition(Standard_Integer&, Standard_Integer&)':
../../../src/Draw/Draw_Window.cxx:485: error: 'XGetWindowAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'Standard_Integer Draw_Window::HeightWin() const':
../../../src/Draw/Draw_Window.cxx:499: error: 'XGetWindowAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'Standard_Integer Draw_Window::WidthWin() const':
../../../src/Draw/Draw_Window.cxx:513: error: 'XGetWindowAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::SetTitle(const char*)':
../../../src/Draw/Draw_Window.cxx:525: error: 'XStoreName' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'char* Draw_Window::GetTitle()':
../../../src/Draw/Draw_Window.cxx:535: error: 'XFetchName' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In static member function 'static Standard_Boolean Draw_Window::DefineColor(Standard_Integer, const char*)':
../../../src/Draw/Draw_Window.cxx:556: error: 'XParseColor' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:558: error: 'XAllocColor' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::DisplayWindow()':
../../../src/Draw/Draw_Window.cxx:576: error: 'XMapRaised' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:578: error: 'XFlush' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::Hide()':
../../../src/Draw/Draw_Window.cxx:587: error: 'XUnmapWindow' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::Destroy()':
../../../src/Draw/Draw_Window.cxx:596: error: 'XDestroyWindow' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:600: error: 'XFreePixmap' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::Clear()':
../../../src/Draw/Draw_Window.cxx:615: error: 'XGetGCValues' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:616: error: 'XSetForeground' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:617: error: 'XFillRectangle' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:622: error: 'XClearArea' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In static member function 'static void Draw_Window::Flush()':
../../../src/Draw/Draw_Window.cxx:632: error: 'XFlush' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::DrawString(int, int, char*)':
../../../src/Draw/Draw_Window.cxx:641: error: 'XDrawString' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::DrawSegments(Segment*, int)':
../../../src/Draw/Draw_Window.cxx:650: error: 'XDrawSegments' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::Redraw()':
../../../src/Draw/Draw_Window.cxx:665: error: 'XCopyArea' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::SetColor(Standard_Integer)':
../../../src/Draw/Draw_Window.cxx:675: error: 'XSetForeground' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::SetMode(int)':
../../../src/Draw/Draw_Window.cxx:684: error: 'XSetFunction' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'Standard_Boolean Draw_Window::Save(const char*) const':
../../../src/Draw/Draw_Window.cxx:694: error: 'XSync' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:698: error: 'XGetWindowAttributes' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:704: error: 'XRootWindowOfScreen' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:710: error: 'XTranslateCoordinates' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:739: error: 'XCreateImage' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:743: error: 'XGetSubImage' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In member function 'void Draw_Window::Wait(Standard_Boolean)':
../../../src/Draw/Draw_Window.cxx:897: error: 'XSelectInput' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:901: error: 'XSelectInput' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In function 'void ProcessEvents(void*, int)':
../../../src/Draw/Draw_Window.cxx:924: error: 'XPending' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:929: error: 'XNextEvent' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In function 'Standard_Boolean Init_Appli()':
../../../src/Draw/Draw_Window.cxx:1071: error: 'XDisplayName' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:1078: error: 'XSynchronize' was not declared in this scope
../../../src/Draw/Draw_Window.cxx:1082: error: 'XSetInputFocus' was not declared in this scope
../../../src/Draw/Draw_Window.cxx: In function 'void GetNextEvent(Event&)':
../../../src/Draw/Draw_Window.cxx:1109: error: 'XNextEvent' was not declared in this scope
make[3]: *** [Draw_Window.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2