Index: uspace/lib/c/generic/elf/elf_load.c
===================================================================
--- uspace/lib/c/generic/elf/elf_load.c	(revision 17341d4bc043c59499d012d2496df6c02d40fc79)
+++ uspace/lib/c/generic/elf/elf_load.c	(revision dc0d8b52826b8cb72258c5c945e82004187e62ac)
@@ -36,10 +36,13 @@
  */
 
+#include <elf/elf_load.h>
+#include <elf/elf_mod.h>
 #include <errno.h>
 #include <stdio.h>
-#include <elf/elf_load.h>
-#include <elf/elf_mod.h>
+#include <stdlib.h>
+
+#ifdef CONFIG_RTLD
 #include <rtld/rtld.h>
-
+#endif
 
 #define DPRINTF(...)
Index: uspace/lib/c/include/elf/elf_load.h
===================================================================
--- uspace/lib/c/include/elf/elf_load.h	(revision 17341d4bc043c59499d012d2496df6c02d40fc79)
+++ uspace/lib/c/include/elf/elf_load.h	(revision dc0d8b52826b8cb72258c5c945e82004187e62ac)
@@ -38,10 +38,9 @@
 
 #include <elf/elf_mod.h>
-#include <rtld/rtld.h>
 
 /** Information on loaded ELF program */
 typedef struct {
 	elf_finfo_t finfo;
-	rtld_t *env;
+	struct rtld *env;
 } elf_info_t;
 
