Added necessary XInitThreads() call
Merge pull request #3 from MaSTeRAlexandr/master

Added necessary XInitThreads() call