ifdef all errno constants (fix FreeBSD build error)
ifdef BSDsocket constants (to build with FreeBSD).
FreeBSD constants in switch.
Enable box.digest in stable, closes #297

+ fix bsdsocket test
Raise exception on attempt allocate very huge chunk on palloc

Workaround for OPENTAR-77
sophia: build static library only

Conflicts:
	cmake/BuildSophia.cmake