Modifications to make pk OS X friendly

Needs to be compiled with -largp. Will leave that to you to add to automake files. (brew install argp-standalone)