Fix qt pthread compilation
Merge pull request #2 from johnflux/master

Fix qt pthread compilation