tcp_connect forces errno to EINVAL if it can solve DNS address.
socket.tcp_connect returns valid errno if it couldn't find host/port.

closes #541

Merge branch 'stable'

Conflicts:
	test/box/bsdsocket.test