Index: /trunk/FACT++/src/Main.h
===================================================================
--- /trunk/FACT++/src/Main.h	(revision 11262)
+++ /trunk/FACT++/src/Main.h	(revision 11263)
@@ -1,4 +1,13 @@
 #ifndef FACT_MAIN
 #define FACT_MAIN
+
+#if BOOST_VERSION < 104400
+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))
+#undef BOOST_HAS_RVALUE_REFS
+#endif
+#endif
+#include <boost/thread.hpp>
+
+#include "LocalControl.h"
 
 void MainThread(StateMachineImp *io_service, bool dummy)
@@ -36,5 +45,5 @@
 
 template<class T, class S>
-int Main(Configuration &conf, bool dummy=false)
+int Main(const Configuration &conf, bool dummy=false)
 {
     static T shell(conf.GetName().c_str(), conf.Get<int>("console")!=1);
