Fix build with Qt-4.8

QRegExp was not defined at this point.