Fix build when compiling against Berkeley DB 4.0.x.
Reported by: Pointyhat.
Try to build the port on a freshly installed FreeBSD system or a
FreeBSD system with the now default Berkeley DB 4.0 installed.
I'll take it.
superseded by ports/157343