Replace automake by cmake
This patch only has parts done ie: the compiler and cpp compiler part.
This would affect all the project and is only a test. The advantages of cmake is that is is available easily on all platforms and generates makefiles for lots of systems. The only disavantage is that cmake would be a requirement even for non developers would want to build thrift. Also thrift would ease for the port on windows.
Alternatives would be scons and waf. I am currently doing a test with waf build system too (advantage of waf is that it is standalone and can be packaged with the app)