Moved all referenced libraries to separate subfolders within /lib.
Split installation script to allow separate installation of libraries and main package.