fixes build process, adds pkg-config