Index: beast-0.7.4/birnet/birnetutils.cc
===================================================================
--- beast-0.7.4.orig/birnet/birnetutils.cc	2012-09-08 14:49:51.000000000 +0100
+++ beast-0.7.4/birnet/birnetutils.cc	2012-09-08 14:53:21.468191633 +0100
@@ -31,6 +31,7 @@
 #include <signal.h>
 #include <string.h>
 #include <stdio.h>
+#include <unistd.h>
 
 #ifndef _
 #define _(s)    s
Index: beast-0.7.4/birnet/tests/threads.cc
===================================================================
--- beast-0.7.4.orig/birnet/tests/threads.cc	2011-04-08 01:22:30.000000000 +0100
+++ beast-0.7.4/birnet/tests/threads.cc	2012-09-08 14:55:48.756179974 +0100
@@ -17,6 +17,7 @@
 //#define TEST_VERBOSE
 #include <birnet/birnettests.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 namespace {
 using namespace Birnet;
Index: beast-0.7.4/sfi/sfidl-corecxx.cc
===================================================================
--- beast-0.7.4.orig/sfi/sfidl-corecxx.cc	2011-04-08 01:22:41.000000000 +0100
+++ beast-0.7.4/sfi/sfidl-corecxx.cc	2012-09-08 15:06:24.232181647 +0100
@@ -23,6 +23,7 @@
 #include <stdio.h>
 #include <list>
 #include <map>
+#include <string>
 
 namespace {
 using namespace Sfidl;
Index: beast-0.7.4/sfi/sfidl-parser.hh
===================================================================
--- beast-0.7.4.orig/sfi/sfidl-parser.hh	2011-04-08 01:22:42.000000000 +0100
+++ beast-0.7.4/sfi/sfidl-parser.hh	2012-09-08 15:13:02.208183989 +0100
@@ -31,7 +31,7 @@
 
 public:
   const Value& get(const Key& k) const {
-    typename std::map<Key,Value>::const_iterator i = find(k);
+    typename std::map<Key,Value>::const_iterator i = this->find(k);
     if (i != this->end())
       return i->second;
     else
