Bake library paths into executable

Prevents end result from needing to have LD_LIBRARY_PATH set before
running when linking shared libraries, as long as the libraries remain
in the same location after compilation that they were in when the
executable was linked.