diff --git a/libs/gst/base/Makefile.am b/libs/gst/base/Makefile.am
index ff839af..60b0615 100644
--- a/libs/gst/base/Makefile.am
+++ b/libs/gst/base/Makefile.am
@@ -58,6 +58,7 @@ GstBase-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstbase-@GST_MAJORMINO
 		--nsversion=@GST_MAJORMINOR@ \
 		--strip-prefix=Gst \
 		-I$(top_srcdir) \
+                -L../../../gst/.libs -lgstreamer-0.10 \
 		$(gir_cincludes) \
 		--add-include-path=$(top_builddir)/gst \
 		--library=gstbase-0.10 \
diff --git a/libs/gst/net/Makefile.am b/libs/gst/net/Makefile.am
index a5210ff..77540bd 100644
--- a/libs/gst/net/Makefile.am
+++ b/libs/gst/net/Makefile.am
@@ -38,6 +38,7 @@ GstNet-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_MAJORMINOR@
 		-I$(top_srcdir) \
 		$(gir_cincludes) \
 		--add-include-path=$(top_builddir)/gst \
+                -L../../../gst/.libs -lgstreamer-0.10 \
 		--library=gstnet-0.10 \
 		--include=Gst-0.10 \
 		--libtool="$(top_builddir)/libtool" \
diff --git a/libs/gst/net/gstnetclientclock.h b/libs/gst/net/gstnetclientclock.h
index 8ceb547..52d36cf 100644
--- a/libs/gst/net/gstnetclientclock.h
+++ b/libs/gst/net/gstnetclientclock.h
@@ -80,7 +80,7 @@ struct _GstNetClientClock {
 
   GstClockTime current_timeout;
 
-  struct sockaddr_id *servaddr;
+  struct sockaddr_in *servaddr;
 
   GThread *thread;
 
