Fix compilation on CSC computers.

Qt 5.0.1 doesn't have QJsonValueRef::toInt().