Solving bug in wscript
diff --git a/wscript b/wscript
index ddba0d8..a4cea8b 100644
--- a/wscript
+++ b/wscript
@@ -177,7 +177,8 @@
 
         if bld.get_define ("HAVE_LOG4CXX"):
             libsync.use += ' LOG4CXX'
-            unittests.use += ' LOG4CXX'
+            if bld.get_define("_TEST"):
+                unittests.use += ' LOG4CXX'
 
         headers = bld.path.ant_glob(['include/*.h'])
         headers.extend (bld.path.get_bld().ant_glob(['model/sync-state.pb.h']))