Improve CMakeLists.txt

Hook project dependencies search to pkg-config. Windows building
could now be tricky.

Issue #4.