Remove deprecated stack functions
Remove unused variables and functions
Silence warnings for function exit
Update SQL docs to reflect the simplified builds
Fix bad argument ordering in sql lib check
Squash another unused var
Add more useful options for gcc-and-friends