use g_unlink() rather than unlink() universally, requires <glib/gstdio.h> in several files