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.
This patch adds all includes that were required to build on FreeBSD-11.