remove pagefault dependency of unit test
removing SQLITE_MEMDEBUG compilation option and implementing own SQLite memory allocator to fix realloc problem