Fix issue #76: build system is now made compatible with cross compilation

The configure script now uses `PKG_CHECK_MODULES` for zlib and libpng