Qt5 compatibility.

Made qBittorrent compatible with both Qt4 and Qt5.