Fix qt pthread compilation