Work around Debian's patched libnotify 0.7.6

Don't rely on the version number. Try calling `add_action` with the new
API and fallback on the old.