Don't redefine _FORTIFY_SOURCE if compiler already defines it

(cherry picked from commit 72f171dd0dcdb6fb616c36199b7f26fb74325157)