autotools: removed strndup from configure.ac

strndup no longer used because of MacOS incompatibility
feature request #114

* added new parameter --with-xscreensaver for libXss support
* added new parameter --enable-notifications for libnotify support
* when any parameter ins't specified appropriate library is used if
  exists
Added libx11 when --with-xscreensaver chosen