merge metacity(gtk3) changes

merge metacity(gtk3) changes
fix warnings
clean up unused variables
replace UNUSED_VARIABLE by G_GNUC_UNUSED

this request depends on https://github.com/mate-desktop/mate-desktop/pull/126
officially mate-desktop/gtk3 does not provide libmate-desktop-3.0, so here should be mate-desktop-2.0