system-preferences requires polkit-qt-1
Detect autotools build system
Set PKG_CONFIG_PATH during build

This will avoid picking up libraries installed in /usr.