Fixing x11 threads.
pthread_create returns a result, not the thread identifier.