Use XInitThreads for Qt version < 4.8

Signed-off-by: Ivaylo Dimitrov <freemangordon@abv.bg>