Fix for building on HPUX

The current HPUX machine has very little space, creating
both a tdb and a qdbm database for testing makes it run out
of space.
(cherry picked from commit 05a7e7c36b36801a5d16d64df96c8fc331efc4c4)