Made libnotify optional
Added libnotify support