replace use-system-patches with one from upstream
add patches to allow building with sqlite 3.8.x
update spec to use sqlite 3.8.x patches