upgrade internal sqlite3 to 3.8.7

Like d0dbec7d7a65d7cacae9e740f90134882cbb96e9, only newer.

Closes #354.