diff --git a/examples/mk/common.mk b/examples/mk/common.mk
index f95464276deaf60c770fd2242ad41ddad4b2db2a..9c563ddf62e9c07b4e6e7029542ceb44bff57a18 100644
--- a/examples/mk/common.mk
+++ b/examples/mk/common.mk
@@ -1,7 +1,8 @@
 NDPDIR = $(TESTDIR)/..
+NDPVERSION = 0.1
 BENCHDIR = $(TESTDIR)/lib
 
-NDPLIB = $(NDPDIR)/libHSndp.a
+NDPLIB = $(NDPDIR)/dist/build/libHSndp-$(NDPVERSION).a
 BENCHLIB = $(BENCHDIR)/libNDPBench.a
 HC = $(NDPDIR)/../../compiler/ghc-inplace
 
diff --git a/ndp.cabal b/ndp.cabal
index 307c0799cda6af28aa85584e033f33d1ac1f760b..1f09eb76d345921b954542884ccd878935a05caa 100644
--- a/ndp.cabal
+++ b/ndp.cabal
@@ -70,5 +70,5 @@ other-modules:
 ghc-options: -fglasgow-exts -fbang-patterns -O2 -funbox-strict-fields 
              -fliberate-case-threshold100 -fdicts-cheap -fno-method-sharing
              -fmax-simplifier-iterations6 -threaded -haddock -ftype-families
-             -fcpr-off
+             -fcpr-off -package-name ndp