char* to const char* in leptonica file writing interface

according to leptonica's headers, it is const char*. Just a cosmetic
change.
fix koptcontext test spec

API of PNG export functions has changed, reflect that in the test
suite.

Gets rid of an error message.