diff --git a/otfauxlib/Makefile.am b/otfauxlib/Makefile.am
index 1853bc2..9db9824 100644
--- a/otfauxlib/Makefile.am
+++ b/otfauxlib/Makefile.am
@@ -13,7 +13,7 @@ libotfaux_la_CPPFLAGS = $(AM_CPPFLAGS) \
 
 libotfaux_la_CFLAGS = -prefer-pic
 #libotfaux_la_LDFLAGS = -version-info @OTF_VERSION_LIBRARY@
-libotfaux_la_LIBADD = $(top_builddir)/vendor/jenkins_hash/libjenkins_hash.la
+libotfaux_la_LIBADD = $(top_builddir)/vendor/jenkins_hash/libjenkins_hash.la $(top_builddir)/otflib/libotf.la
 libotfaux_la_SOURCES = \
 	OTFAUX_MsgMatching.c \
 	OTFAUX_Thumbnail.c
--- otf-1.10.2+dfsg.orig/tools/otfcompress/Makefile.am
+++ otf-1.10.2+dfsg/tools/otfcompress/Makefile.am
@@ -14,6 +14,7 @@

 otfcompress_LDADD = $(top_builddir)/otflib/libotf.la
 otfcompress_DEPENDENCIES = $(otfcompress_LDADD)
+otfcompress_LDADD += $(ZLIB_LIB_LINE)
 otfcompress_SOURCES = \
 	sys_time.h \
 	otfcompress.c
