Remove debug output in CMakeLists.txt
CMakeLists.txt cleanup.
Implemented pkg-config file generation.
Unhardcode lib install directory.

Now it can be overridden with CMAKE_INSTALL_LIBDIR variable.