change _FORTIFY_SOURCE define from 2 to 1, add -O1 along with it to avoid warnings. fix #355