minor compiling fixes, SQLite update, error message fix

This pull request adresses the following issues:

- Update of SQLite to v3.8.2
- Removal of SQLite from the amalgamation, to fix a compilation problem on gcc 4.8.1
- Adjustment of error messages