Modify CMake file for using pkgconfig