Windows macro change Q_WS_WIN=>Q_OS_WIN and minor debug log addition.