add XInitThreads() to make Xlib thread-safe. improves stability when playing with slider