qt4-gui: Add missing #ifdef around variable usage

Fixes #35
qt4-gui: Remove #ifdef around slot declaration

It seems moc doesn't parse the #ifdef and assumes the slot always
exists.

Fixes #36
core: Workaround defines in socks.h

socks.h defines send to Rsend which also affected the name of
TCPSocket::send().

Fixes Gentoo bug 484706
Merge branch '1.8-stable'