Increase segment number for end-of-file segment.

Signed-off-by: Adam Langley <agl@imperialviolet.org>
The size of the segment page association field must be four bytes for
pages with page numbers greater than 255.

Signed-off-by: Adam Langley <agl@imperialviolet.org>
Fix a couple of issues with Windows building

(Reported by David Siefker)
Bump to leptonlib 1.62
Updated Leptonica references to 1.63
Fixed Leptonica 1.63 API change in jbig2.cc
Updated Leptonica references to 1.63
Fixed Leptonica 1.63 API change in jbig2.cc
Merge branch 'master' of git@github.com:agl/jbig2enc
Fix Linux build
Apply standard out binary fix for Python script.

Taken from:
  http://blog.rubypdf.com/2009/11/03/how-to-let-python-send-binary-data-to-stdout-under-windows/
Fixed usage() calls to have 2 args
Merge branch 'master' of git://github.com/dwightkelly/jbig2enc

Conflicts:
	pdf.py
Sort the pages file in pdf.py

Previously, the pages were encoded in whatever order getdents gave us.

Fixes issue 9.
Keep resolution information from source images.

(Patch from akryukov via GitHub)
Bump to latest Leptonica release
Respect DPI

pdf.py is just a quick hack and I don't want to extend it to
introspecting the JBIG2 bitstreams. So I just hardcode the DPI value
here in the hope that the size of the resulting pages will be a little
saner for most people and that it's obvious what to change now.
Upgrade to Leptonica 1.68 & fix build issues

findFileFormat changed to findFileFormatStream between 1.67 and 1.68 - patch jbig2.cc, and update Leptonica version number and dirname.
Merge pull request #13 from mistydemeo/master

Fix build with Leptonica 1.68 and bump version
Update to Leptonica 1.68
Merge branch 'master' of github.com:agl/jbig2enc
Update missing license block in header file.

jbig2segments.h was missing the license block that all the other files
included. This change adds it in to make it clear that it's under the
same copyright as the rest of the code.