Fix build on latest Cauldrons. There was a regression in gcc. All the tests of the BerkeleyDB CPAN module pass with this version, and db5.1 is not required by many Mageia packages anyway.