PJ: fix prototypes for inks.

Also made bclosest_col and closestc operate on const cmaps.
PJ: fix prototypes for input.