fix pkg-config dependency check