GTK+ and Qt build fix after r139833.