Port gnome-session commit ad66350c to prevent semi-random segfaults when compiled without systemd support. Fixes #24.
Merge pull request #25 from ljanyst/master

Port gnome-session commit ad66350c.