      CWalletDB *pwalletdbEncryption;
  
      //! the current wallet version: clients below this version are not able to load the wallet
-@@ -201,6 +199,7 @@ public:
+@@ -206,6 +204,7 @@ public:
      bool CanSupportFeature(enum WalletFeature wf) { AssertLockHeld(cs_wallet); return nWalletMaxVersion >= wf; }
  
      void AvailableCoins(std::vector<COutput>& vCoins, bool fOnlyConfirmed=true, const CCoinControl *coinControl = NULL) const;

     # All windows code is PIC, forcing it on just adds useless compile warnings
     AX_CHECK_COMPILE_FLAG([-fPIE],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fPIE"])
     AX_CHECK_LINK_FLAG([[-pie]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -pie"])
@@ -418,6 +427,17 @@ if test x$use_hardening != xno; then
   OBJCXXFLAGS="$CXXFLAGS"
 fi
 

 if ENABLE_TESTS
 include Makefile.test.include
 endif
@@ -416,3 +430,4 @@ endif
 if ENABLE_QT_TESTS
 include Makefile.qttest.include
 endif
+endif
diff --git a/src/Makefile.daemon.include b/src/Makefile.daemon.include
new file mode 100644
index 0000000..b4934ba
--- /dev/null
+++ b/src/Makefile.daemon.include
@@ -0,0 +1,52 @@
+all: $(LIBBITCOIND)
+
+leveldb_obj = \
