sqlite: Add some missing includes
Forbid some additional library functions
Fix build from Git checkout with core.autocrlf=true