export PKG_CONFIG_PATH=/usr/lib/pkgconfig

Then try compiling. This must be done in the same terminal window!