Make the compiled test programs dynamically link against libpkg.so.1
in the build tree, rather than any copy that happens to be on the
usual library search path.