Fix Qt build (new thread source).