wscript: Fix compilation of debug mode without log4cxx

Change-Id: I2719b3ffea85f226276adc24e26fdae722eb2ae9
diff --git a/src/logging.h b/src/logging.h
index 78d0eea..975153d 100644
--- a/src/logging.h
+++ b/src/logging.h
@@ -82,7 +82,7 @@
 #include <iostream>
 
 #define _LOG_DEBUG(x) \
-  std::clog << boost::get_system_time () << " " << boost::this_thread::get_id () << " " << x << endl;
+  std::clog << boost::get_system_time () << " " << boost::this_thread::get_id () << " " << x << std::endl;
 
 #else
 #define _LOG_DEBUG(x)
diff --git a/wscript b/wscript
index d3f566a..86d4e4f 100644
--- a/wscript
+++ b/wscript
@@ -169,7 +169,7 @@
     if Utils.unversioned_sys_platform () == "darwin":
         adhoc.mac_app = True
         adhoc.source = 'adhoc/adhoc-osx.mm'
-        adhoc.use = "LOG4CXX OSX_FOUNDATION OSX_COREWLAN"
+        adhoc.use = "BOOST BOOST_THREAD BOOST_DATE_TIME LOG4CXX OSX_FOUNDATION OSX_COREWLAN"
 
     chornoshare = bld (
         target="chronoshare",