fixed pkg-config handling