added missing includes for various socket types

compiler complains about it, if optimizations are enabled
don't assign a variable to it's self, compiler complains
Merge pull request #1 from mehlis/master

make ccn lite relay build with optimizations enabled