Increased default socket size to 6KB
When GCC is the compiler, use builtin endianess conversion.

Fixes #206