Misc fixes to tests and makefiles
Merge review 470 by @wmrowan
Replace randint() by 0 (aka ANY_PORT) in the unit tests (#664)
Merge branch 'next' into sam_libcxx
Modify testsuite and scripts to run on OSX and FreeBSD

Review 467 by @mlucy
Closes #653
Fix stress client networking code (#616)

Review 471 by @jdoliner
Run polyglot tests against running server + and extra documentation

Closes #675

Review 468 by @mlucy and @wmrowan
Merge branch 'next' into sam_libcxx

Conflicts:
	external/gtest-1.6.0/fused-src/gtest/gtest.h
	external/gtest/include/gtest/internal/gtest-port.h
Merge branch 'sam_libcxx' into sam_no_ptr_bag