spacefm: make this work with glib>=2.41 (close #563).