Fix DB_BIGINT support and unused vars.

(cherry picked from commit 611d47f5ac3ed36bcf3cfa233e25586b29616e88)

Conflicts:
	modules/db_berkeley/db_berkeley.c