Fix compilation with libnotify < 0.7.0

Thanks to @fluxer for pointing out this issue