Replace qDebug() output by std::cout