Merge branch 'next' into sam_666
Use correct make program name (for systems calling make as "gmake").
Fix missing sockaddr_storage definition on FreeBSD.
Use correct alloca header file for FreeBSD.
Use getpid() for gettid() on FreeBSD.

This is fine unless we do clone(2) with CLONE_THREAD flag.
Fix nftw failure (E_INVAL) on FreeBSD.
Fix dprintf compile error on FreeBSD.
Select kqueue for timer on FreeBSD.
Add FreeBSD to conditional compilation that applies to both FreeBSD and MacOSX.
Fix stack_t.ss_sp type difference for FreeBSD.
Fix file data syncing for FreeBSD.
Support systems without python in /usr/bin (Ex, FreeBSD).
Add FreeBSD build environment settings.
Add FreeBSD into configure host list.

Tested on FreeBSD 9 with following steps:

 # For dependency
 pkg_add -r wget protobuf protobuf-c v8 openjdk7 boost-all gmake
 pkg_add -r bash node npm py-yaml
 npm install -g less coffee-script handlebars

 # To configure
 CXX=clang ./configure
 # Edit config.mk to add "ALLOW_WARNINGS := 1"

 # To build
 gmake