Add QThread and ThreadQueue classes.