CONFIGURE: prepare for automake-1.13

Update macros, remove deprecated macros and fix the
flags logic. Provide "Werror" and "minimalflags" switch
and use rdynamic instead of export-dynamic.
DESKTOPFILE: remove deprecated value