Ensure -L from pkg-config paths are also in build.
Use the official pkgconfig command.

Much cleaner. Thanks @jgrevich!
Merge pull request #4 from omb-awong/support_reference_uri

Support reference uri