Replaced printing to stderr by real error message using Glib logger.