Added support for Qt5

Qt5 moves all of QUrl's query string functions into a separate class
(QUrlQuery). With the way that class works, this means two more lines
for each query operation (and an extra stack allocation) for seemingly
no good reason.