apply only 50% of 0002-fix-for-sqlite3.patch by Remi Collet (due to commit 42f4915781f0b82f0b4bec42978024a8165601dd
fix APC test

Signed-off-by: Laurent Laville <laurent.laville@gmail.com>