Add local::lib initialization code

Also sets up manpages to be installed inside the local::lib.