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

Conflicts:
	.travis.yml
Merge branch 'master' into travis
import scons