Fix for static QRegExp member not being cleaned up at exit