Use pkgconfig to find the zlib and gl libraries.

As described in #695, this fixes installing `capybara-webkit` on NixOS.