Fixed friend function declaration
Fix for CLANG version
Fixed struct DNSResourceRecord into class as it should be
Removed internal CLANG version define
Merge pull request #855 from cmouse/clang-fixes

Clang fixes - thanks aki!