socket: conditinally use socket_forward
scons: import compiler and linker flags

Conflicts:
	.travis.yml