Added missing include for build on clang/mac.
#ifdefed out xlib when not using x11.