Call XInitThreads() at the beginning of main(). Related to linuxmint/Cinnamon#2803