Fix the build process so that the shared library gets an absolute path

Previously, the path of the shared library was specified as a relative
path. This works if you're in the correct directory, but doesn't work in
general.