THRIFT-2906 - linking with boost_unit_test_framework made more portable

Client: C++
Patch: Jon Parise

BOOST_TEST_LDADD Makefile variable added and should be used when linking
with boost_unit_test_framework

This closes #333
THRIFT-2907 - macro ntohll defined only when needed

Client: C++
Patch: Jon Parise

This closes #334
test/cpp/Makefile.am: add ZLIB_LIBS to LDFLAGS
THRIFT-2893 CMake build fails with boost thread or std thread

Following changes are made to fix the build
* Add USE_..._THREAD compiler definitions correctly
* Link to boost_thread and boost_system when configured with boost thread
* Link to pthread if platform is posix and std thread is used
* Use PlatformThreadFactory in test code
THRIFT-2903 Qt4 library built with CMake does not work
THRIFT-2098 Add support for Qt5+
THRIFT-2909 Improve travis build
THRIFT-2901 Fix for generated TypeScript functions + indentation of JavaScript maps
THRIFT-2897: Implement hash and isEqual: methods

Client: cocoa
Patch:  Jim Speth

This closes #330