diff --git a/BerkeleyDBXML.cabal b/BerkeleyDBXML.cabal
--- a/BerkeleyDBXML.cabal
+++ b/BerkeleyDBXML.cabal
@@ -1,5 +1,5 @@
 name: BerkeleyDBXML
-version: 0.3
+version: 0.4
 license: BSD3
 license-file: LICENSE
 cabal-version: >= 1.4
diff --git a/Database/Berkeley/db_helper.cpp b/Database/Berkeley/db_helper.cpp
--- a/Database/Berkeley/db_helper.cpp
+++ b/Database/Berkeley/db_helper.cpp
@@ -1,5 +1,8 @@
 #include "db_helper.h"
 
+#include <string.h>
+#include <stdlib.h>
+
 int _dbenv_create__(DbEnv** dbenv, u_int32_t flags) {
     *dbenv = new DbEnv(flags);
     return 0;
diff --git a/README b/README
--- a/README
+++ b/README
@@ -28,6 +28,10 @@
 
 To install, use the standard Cabal install procedure:
 
+sudo cabal install
+
+or
+
 runhaskell Setup.hs configure
 runhaskell Setup.hs build
 runhaskell Setup.hs haddock            (optional documentation in dist/doc)
@@ -36,9 +40,10 @@
 If Berkeley DB or DB XML is not installed in the default location of /usr or
 /usr/local, you will need to specify the paths in this way:
 
-runhaskell Setup.hs configure \
-    --extra-include-dirs=/usr/local/dbxml-2.4.13/include/dbxml/ \
-    --extra-lib-dirs=/usr/local/dbxml-2.4.13/lib/
+sudo cabal install \
+    --extra-include-dirs=/usr/local/dbxml-2.4.16/include/ \
+    --extra-include-dirs=/usr/local/dbxml-2.4.16/include/dbxml/ \
+    --extra-lib-dirs=/usr/local/dbxml-2.4.16/lib/
 
 Cabal does not seem to check these very well. If you get the lib directory
 wrong, you won't find out until you try to build the examples.
diff --git a/examples/adventure/Adventure.hs b/examples/adventure/Adventure.hs
--- a/examples/adventure/Adventure.hs
+++ b/examples/adventure/Adventure.hs
@@ -440,7 +440,7 @@
         DB_INIT_TXN,DB_THREAD,DB_RECOVER] 0
     mgr <- xmlManager_create dbenv []
     cont <- xmlManager_openContainer mgr "adventure.dbxml"
-        [DBXML_TRANSACTIONAL,DB_FLAG DB_THREAD,DB_FLAG DB_MULTIVERSION,DB_FLAG DB_CREATE]
+        [DBXML_TRANSACTIONAL,DB_FLAG DB_THREAD,DB_FLAG DB_CREATE]
         WholedocContainer 0
 
     putStrLn$ "Adventure server - please telnet into port "++show portNo
