Add install/uninstall targets and switch to using a shell script for getting link arguments