Fix location of pgtcl package and generation of linker flags.

See also issue #39.