Fix ktorrent build on FreeBSD
FreeBSD-11 (clang-4.0) fails to build ktorrent-master at this time,
due to DHTBase being forward declared, Log macros missing,
and time_t being undeclared.
I was able to resolve these issues over here by adding more #include
instructions.
Differential Revision: https://phabricator.kde.org/D6804