Add _FORTIFY_SOURCE directive only when compiling with optimization enabled