Fix functions and macros using to support both Qt4 and Qt5.
Fix Q_MOC_RUN for libtorrent >= 1.0