Using pkg-config if available to build on Posix.