nitc & niti: move the duplicated pkg-config checks to the pkgconfig module