Fixed cmake lib.
Fixed assorted problems with the libpqxx.