libgimpbase: add gimp_output_stream_[v]printf()

Temporary, to be removed when we depend on glib 2.40, which will
clearly be before gimp 2.10