corrected bug where top level build was giving pkg-config error messages