diff --git a/Makefile.dep b/Makefile.dep
index ae54a9c68fc5a760c986af7f947fac2507b5e6b3..4ae604dd6c1e0851029fa91a393c84b71041b030 100644
--- a/Makefile.dep
+++ b/Makefile.dep
@@ -7,6 +7,25 @@ ifneq (,$(findstring vtimer,$(USEMODULE)))
 	endif
 endif
 
+
+ifneq (,$(findstring pnet, $(USEMODULE)))
+	ifeq (,$(findstring posix, $(USEMODULE)))
+		USEMODULE += posix
+	endif
+	ifeq (,$(findstring destiny, $(USEMODULE)))
+		USEMODULE += destiny
+	endif
+	ifeq (,$(findstring net_help, $(USEMODULE)))
+		USEMODULE += net_help
+	endif
+endif
+
+ifneq (,$(findstring posix, $(USEMODULE)))
+	ifeq (,$(findstring uart0, $(USEMODULE)))
+		USEMODULE += uart0
+	endif
+endif
+
 ifneq (,$(findstring uart0,$(USEMODULE)))
 	ifeq (,$(findstring lib,$(USEMODULE)))
 		USEMODULE += lib	
@@ -42,18 +61,6 @@ ifneq (,$(findstring at86rf231,$(USEMODULE)))
 	endif
 endif
 
-ifneq (,$(findstring pnet, $(USEMODULE)))
-	ifeq (,$(findstring posix, $(USEMODULE)))
-		USEMODULE += posix
-	endif
-	ifeq (,$(findstring destiny, $(USEMODULE)))
-		USEMODULE += destiny
-	endif
-	ifeq (,$(findstring net_help, $(USEMODULE)))
-		USEMODULE += net_help
-	endif
-endif
-
 ifneq (,$(findstring destiny,$(USEMODULE)))
 	ifeq (,$(findstring sixlowpan,$(USEMODULE)))
 		USEMODULE += sixlowpan
diff --git a/sys/posix/include/unistd.h b/sys/posix/include/unistd.h
index a051e8a14433280eff675ee9d000c6f636046f1f..5ec8ec9cf5f7f1f68008db8e1e413acffc0da14e 100644
--- a/sys/posix/include/unistd.h
+++ b/sys/posix/include/unistd.h
@@ -24,6 +24,10 @@
 #ifndef _UNISTD_H
 #define _UNISTD_H
 
+#define STDIN_FILENO    0   ///< stdin file descriptor
+#define STDOUT_FILENO   1   ///< stdout file descriptor
+#define STDERR_FILENO   2   ///< stderr file descriptor
+
 /**
  * @brief   Close a file descriptor.
  * @details shall deallocate the file descriptor indicated by *fildes*. To