Fixed pkgconfig path and dynlib issue