Fix lib pulling in unwanted packages.
Updated Makefile.
Turned pbd into a shell script that uses pwd.