fixed pkg-config bug on mac