configure: Fix _FORTIFY_SOURCE redefinition.

Some systems enables _FORTIFY_SOURCE by default which leads to tons of
redefiniton warnings. Fix this by checking if _FORTIFY_SOURCE is defined
in configure script (also disable _FORTIFY_SOURCE if no optimalizations
are done).

Signed-off-by: Cyril Hrubis <metan@ucw.cz>