Use custom a handler for g_printerr