Bug 695171: Pointer error when padding an fz_concat machine

When we return the padding byte in an fz_concat stream, ensure that
we remember to increment rp to point just past in. If not, then we'll
read 2 whitespace chars out. This is fine unless we try and
fz_unread_byte the first one, when we'll leave rp pointing to
an out of buffer address.

Credit to Malc for the bisecting/debugging that got me to the fix.
Many thanks.
Fix 694084: compute number of segments in radial shading from radius.
Update pkgconfig file for the debian library
Initialize timeout earlier in x11 viewer

Previously any warning displayed at the top of the page
would never disappear because the display timeout being
set would be overwritten by the later initialization.
Raise CURL transfer size from 4KByte to 1MByte in X11 viewer

Previously, the overhead for the HTTP requests and responses
was too high, e.g. pdfref17.pdf would result in almost 8000
separate HTTP requests (but with this patch about 30.
Fix warning in debug message for CURL in X11 viewer
Print error when trying to open document without any pages
Fix 692171: Guard against .incbin on Intel's C compiler.
Fix 695207: printf format bug in mutool info.
Fix 695105: openjpeg configuration for big-endian.

Stupid unportable code needs stupid unportable preprocessor macros.

This only works with GCC, but should be good enough since I expect
anyone using a big-endian machine to also use a GCC compatible compiler.
Fix 695098: don't use atoi() on non-zero-terminated buffer.
Fix 694909: revert "Force colorspaces to match with JPX images." and ...

... instead convert a JPEG2000 used as a soft mask into grayscale.

This is more robust than trusting the PDF specified colorspace over
the internal JPX colorspace.

The spec implies that in a colorspace conflict, the internal JPX
colorspace should be used.

The PDF colorspace may be a DeviceN or Separation colorspace.
DeviceN and Separation colorspaces are not valid destination
colorspaces, so we may not always be able to convert the internal
JPX colorspace into the PDF specified colorspace.

Converting from the internal colorspace into grayscale is more robust,
and solves the issue that the original commit was intended to fix.
Bug 694801: fast_cmyk_to_rgb caching broken.

fast_cmyk_to_rgb had a simple 1 place cache to avoid recalculating
the same conversions again and again. The implementation was broken
though, both in C and ARM code versions. This seems to fix it.
iOS: add extra icon sizes for iOS 7
Fix 693313: increase the zoom range and use fixed steps.

Use an explicit list of resolutions for +/- zoom stepping.
Fix 695112: patch JPEG streams with missing dimensions

If a JPEG stream is missing valid values for width/height (usually -1),
Adobe Reader substitutes these using the values read from the PDF
object. This can be done by scanning and patching the data before
passing it to libjpeg.

Thanks to zeniko for the patch.
Fix 694510: Detect all ways to maximize a window in win32.

SC_MAXIMIZE is only sent when maximizing via the maximize button.
Dragging to the screen edge, double clicking the title bar or
WinKey+Up do not generate an SC_MAXIMIZE message.

Detect when gettincg a WM_SIZE message with SIZE_MAXIMIZE instead.
Fix 694428: use system CURL library if available.
Bug 695112: only patch height values in JPEG streams

If the reported height is 0 or too large, use the image size reported
in the PDF itself instead (in the case of height 0, the JPEG library
is supposed to read the correct value from the DNL segment, but libjpeg
doesn't support that).
Correctly round PNG image resolution

Currently, png_read_phys always rounds the resolution down. Many images
have a resolution just slightly shy of 96 DPI and are thus rendered too
large when they're resized from 95 to match the required 96 for output.