Fix build when no PKG_CONFIG_PATH is set.

Thsi also fix the build when a re-configure is needed.

Reviewed by: Luciano Wolf