app: do not use g_error() for non-fatale errors...

and g_warning() for programming errors only.
Use g_printerr() for "normal" errors which may happen in a program
lifetime (in particular corrupted XCF file errors are not necessarily
programming errors).
app: link against Z_LIBS