Fixed compilation on OS X

* zlib doesn't have pkg-config cfg
* zlib is required not just when usePNG is true
Use the correct path to libGL on OS X.