Do not stage libraries during install, instead append their parent to LD...

..._LIBRARY_PATH.

The current approach does not work anyway if used with certain external libraries, e.g. libjvm.