more el5 build fixes

* Need to pass the path to the static X11 libraries to cmake