This is a PATCHED version of icclib v1.23!!!
--------------------------------------------

While working on Scarse, I (AF) have found and fixed the following
bugs (sequence of patches from original code is in BUGFIX.* files):


1. Consistency check broken in check_icc_legal():

    Code failed to try next check table entry as promised. As a result,
    legal input profiles triggered consistency error. Fixed by adding an
    option to try next table entry if allowed.


2. Broken public header icc.h:

    For some reason, there were static function declarations in public
    header icc.h. This was bugging the hell out of gcc -Wall for all files
    that included it. I (AF) finally got fed up and removed all static
    function declarations from icc.h.


3. Broken icmCurve_lookup_bwd():

    The implementation of backward curve lookup was brain-damaged. Not only
    it was horifically slow, it failed to do linear interpolation most of
    the time, returning nearest neighbour instead. Replaced by classical
    linear interpolation with hunting search of interpolating table values.

