Fixed the errors for missing QUrlQuery in Qt<5