diff --git a/Makefile b/Makefile
index eb3f9e6..b851219 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
CXX=clang++
CXX_FLAGS += -fPIC -std=c++11
-LD_FLAGS += -shared -lprotobuf-lite -Wl,--no-undefined
+LD_FLAGS += -shared -lprotobuf-lite -ldl -Wl,--no-undefined
LIBRARY_NAME=libsteam_api.so
RM = rm -f
diff --git a/dll/steam_networking.h b/dll/steam_networking.h
index 816a34c..5d5ff15 100644
--- a/dll/steam_networking.h
+++ b/dll/steam_networking.h
@@ -16,6 +16,7 @@
. */
#include "base.h"
+#include
//packet timeout in seconds for non connections
#define ORPHANED_PACKET_TIMEOUT (20)