Fix building with QT_NO_CAST_FROM_ASCII defined