added pkgconfig, improved cmake