Use quintptr for qDebug() messages, as qintptr is not available in Qt 4.8