build will use -Werror=format-security option (cherry picked from commit a7cffde5274cf43f68bfdacd93e833bf92d8212e)