Implement random calling of optimized OpenDB with an optional env var
Merge pull request #933 from jeffali/port35x/TcOptimizeEnvVar

Port35x/tc optimize env var
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)
Merge pull request #959 from cduclos/3.5.x

Fix for building on HPUX
Fixes for building on hpux

Creating 1000 entries is too much on that small hard drive, therefore
reducing it to 2. After all, even one entry will do the trick of
corrupting the file.
(cherry picked from commit 2d8f47a18f09f85cb70eeb405f409756b2771b35)
Merge pull request #961 from cduclos/3.5.x

Fixes for building on hpux
Merge pull request #967 from McAtte/3.5.x

3.5.x