lib/sqlite3: adds fallback for sqlite3_errstr in case it is unsupported

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>