THRIFT-2835 Add possibility to distribute generators separately from thrift core, and load them dynamically

Deploy headers needed to build plugins

Restructure source tree to match lib and to make sure headers are
deployed to INCLUDE_DIR/thrift.

This closes #368 and closes #1039
diff --git a/configure.ac b/configure.ac
index e11636f..94e7a8b 100755
--- a/configure.ac
+++ b/configure.ac
@@ -528,7 +528,7 @@
   have_plugin="no"
 fi
 if test "$have_plugin" = "yes" ; then
-  AC_CONFIG_LINKS([compiler/cpp/test/plugin/t_cpp_generator.cc:compiler/cpp/src/generate/t_cpp_generator.cc])
+  AC_CONFIG_LINKS([compiler/cpp/test/plugin/t_cpp_generator.cc:compiler/cpp/src/thrift/generate/t_cpp_generator.cc])
 fi
 AM_CONDITIONAL(WITH_PLUGIN, [test "$have_plugin" = "yes"])
 
@@ -729,10 +729,10 @@
   Makefile
   compiler/cpp/Makefile
   compiler/cpp/src/Makefile
-  compiler/cpp/src/plugin/Makefile
+  compiler/cpp/src/thrift/plugin/Makefile
   compiler/cpp/test/Makefile
-  compiler/cpp/src/version.h
-  compiler/cpp/src/windows/version.h
+  compiler/cpp/src/thrift/version.h
+  compiler/cpp/src/thrift/windows/version.h
   lib/Makefile
   lib/cpp/Makefile
   lib/cpp/test/Makefile