diff --git a/libretroshare/src/pqi/pqinetstatebox.cc b/libretroshare/src/pqi/pqinetstatebox.cc
index fa265dc12..7a0601fb9 100644
--- a/libretroshare/src/pqi/pqinetstatebox.cc
+++ b/libretroshare/src/pqi/pqinetstatebox.cc
@@ -4,6 +4,8 @@
 #include "pqi/pqinetstatebox.h"
 #include "time.h"
 
+#include "bitdht/bdiface.h"
+
 // External Interface.
 
 void pqiNetStateBox::setAddressStunDht(const struct sockaddr_storage &addr, bool stable)
diff --git a/libretroshare/src/pqi/pqinetstatebox.h b/libretroshare/src/pqi/pqinetstatebox.h
index 9d6f43e55..6b266b627 100644
--- a/libretroshare/src/pqi/pqinetstatebox.h
+++ b/libretroshare/src/pqi/pqinetstatebox.h
@@ -6,8 +6,6 @@
 #include <string>
 #include <list>
 
-#include "bitdht/bdiface.h"
-
 /*** Network state 
  * Want this to be all encompassing.
  *