Improved cmake dependency detection.
Merge branch 'master' of github.com:bekaus/pgmlink