Changed the 'after-build.sh' script to change the dynamic library paths to use 'rpath' references and moved to dynamic-library-based executables.