Links libcurl automatically
Checks zlib availability with libpng, workaround for MinGW build