Xlib needs to call XInitThreads