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
THRIFT-2911 fix c++ version zeromq transport, the old version cannot work
Client: contrib
Patch: tiny <lox.xiao@gmail.com>

This closes #315
THRIFT-2912 Autotool build for C++ Qt library is invalid

* Fix incorrect AC_PATH_PROGS usage
* Exclude generated source code from distribution