Add support for older versions of pkg-config