Enclose assert functions by #ifdef QT_DEBUG