scons: fix configure check for sqlite_rtree on linux when sqlite3 is statically linked