Fix build (still in progress, AFK)

Notes:
- this version is vulnerable, please use 31.0.1650.57 ASAP
- patch-base__strings__strings__safe_sprintf_unittest.cc is ugly and needs to be redone
- upstream needs to learn about stdlib.h ?