Upgraded example to use pkg-config