find PkgConfig before using pkg_check_modules

PC specific functions mustn't be used before including PkgConfig
Merge pull request #441 from v4hn/find-pkgconfig-hydro

find PkgConfig before using pkg_check_modules