Make compatible with Gnome 3.12.

Fixes #36