Fix compilation with libnotify version older than 0.7.0