Make sqlite driver work with more versions of the library