diff --git a/RTCP/IONProc/src/CMakeLists.txt b/RTCP/IONProc/src/CMakeLists.txt
index 66775a772f8110f9e3a72fe43c5bf406e9af2e87..0f98a0e4d84a2c4c884e9a306d7bdf41e0d3580a 100644
--- a/RTCP/IONProc/src/CMakeLists.txt
+++ b/RTCP/IONProc/src/CMakeLists.txt
@@ -26,6 +26,7 @@ file (GLOB libinterface_HEADERS BeamletBuffer.h
 				SlidingPointer.h
 				WallClockTime.h
 				WH_DelayCompensation.h
+				Lock.h
 				FCNP_ServerStream.h)
  
 enable_language(ASM-BGP)
@@ -49,6 +50,7 @@ file (GLOB libionproc_SOURCES BeamletBuffer.cc
 			      Scheduling.cc
 			      WH_DelayCompensation.cc
 			      FCNP_ServerStream.cc
+			      Lock.cc
 			      ${amsSrcs})
 
 add_library (ionproc ${libionproc_SOURCES})
diff --git a/RTCP/IONProc/src/ION_main.cc b/RTCP/IONProc/src/ION_main.cc
index f86b2149de162eb6af1011791355073a2b25842c..0c990d368badbd63fe6857d7a91d237ad14af4af 100644
--- a/RTCP/IONProc/src/ION_main.cc
+++ b/RTCP/IONProc/src/ION_main.cc
@@ -34,8 +34,9 @@
 #include <Stream/NullStream.h>
 #include <Stream/SocketStream.h>
 //#include <TH_ZoidServer.h>
+#if !defined HAVE_PKVERSION
 #include <Package__Version.h>
-
+#endif
 #include <cmath>
 #include <cstdlib>
 #include <cstring>
@@ -364,9 +365,10 @@ static void unmapFlatMemory()
 
 void *master_thread(void *)
 {
+#if !defined HAVE_PKVERSION
   std::string type = "brief";
   Version::show<IONProcVersion> (std::clog, "IONProc", type);
-  
+#endif  
   clog_logger("starting master_thread");
 
   enableCoreDumps();