--- a/src/helpers/System.cpp	2011-10-11 22:18:14.000000000 +0200
+++ b/src/helpers/System.cpp	2012-07-21 21:28:40.000000000 +0200
@@ -24,6 +24,7 @@
 #include "Log.h"
 #include "VExcept.h"
 #include <sstream>
+#include <unistd.h>

 std::vector<std::string>* System::getDisplayModes(int windowed) {
     std::vector<std::string>* modes = new std::vector<std::string>;