fix pkg-config detection