made configure fail if required zlib, libcrypto and/or dlopen support is not available
added missing limits.h header